Minh Nguyen / ArduinoJson
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers is_same.hpp Source File

is_same.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 // A meta-function that returns true if types T and U are the same.
00012 template <typename T, typename U>
00013 struct is_same : false_type {};
00014 
00015 template <typename T>
00016 struct is_same<T, T> : true_type {};
00017 }  // namespace ARDUINOJSON_NAMESPACE