Minh Nguyen / ArduinoJson
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers is_floating_point.hpp Source File

is_floating_point.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 
00009 namespace ARDUINOJSON_NAMESPACE {
00010 
00011 template <typename>
00012 struct is_floating_point : false_type {};
00013 
00014 template <>
00015 struct is_floating_point<float> : true_type {};
00016 
00017 template <>
00018 struct is_floating_point<double> : true_type {};
00019 }  // namespace ARDUINOJSON_NAMESPACE