Minh Nguyen / ArduinoJson
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers is_unsigned.hpp Source File

is_unsigned.hpp

00001 // ArduinoJson - arduinojson.org
00002 // Copyright Benoit Blanchon 2014-2021
00003 // MIT License
00004 
00005 #pragma once
00006 
00007 #include "integral_constant.hpp"
00008 namespace ARDUINOJSON_NAMESPACE {
00009 
00010 template <typename>
00011 struct is_unsigned : false_type {};
00012 
00013 template <>
00014 struct is_unsigned<bool> : true_type {};
00015 
00016 template <>
00017 struct is_unsigned<unsigned char> : true_type {};
00018 
00019 template <>
00020 struct is_unsigned<unsigned short> : true_type {};
00021 
00022 template <>
00023 struct is_unsigned<unsigned int> : true_type {};
00024 
00025 template <>
00026 struct is_unsigned<unsigned long> : true_type {};
00027 
00028 #if ARDUINOJSON_HAS_INT64
00029 template <>
00030 struct is_unsigned<unsigned __int64> : true_type {};
00031 #endif
00032 
00033 #if ARDUINOJSON_HAS_LONG_LONG
00034 template <>
00035 struct is_unsigned<unsigned long long> : true_type {};
00036 #endif
00037 }  // namespace ARDUINOJSON_NAMESPACE