Minh Nguyen / ArduinoJson
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers is_array.hpp Source File

is_array.hpp

00001 // ArduinoJson - arduinojson.org
00002 // Copyright Benoit Blanchon 2014-2021
00003 // MIT License
00004 
00005 #pragma once
00006 
00007 #include <ArduinoJson/Namespace.hpp>
00008 
00009 #include <stddef.h>  // size_t
00010 
00011 namespace ARDUINOJSON_NAMESPACE {
00012 
00013 template <typename T>
00014 struct is_array : false_type {};
00015 
00016 template <typename T>
00017 struct is_array<T[]> : true_type {};
00018 
00019 template <typename T, size_t N>
00020 struct is_array<T[N]> : true_type {};
00021 }  // namespace ARDUINOJSON_NAMESPACE