3-phase PV router
Loading...
Searching...
No Matches
is_class.hpp
Go to the documentation of this file.
1// ArduinoJson - https://arduinojson.org
2// Copyright © 2014-2023, Benoit BLANCHON
3// MIT License
4
5#pragma once
6
7#include "declval.hpp"
8
9template< typename T >
11{
12protected: // <- to avoid GCC's "all member functions in class are private"
13 template< typename U >
14 static int probe(void (U::*)(void));
15 template< typename >
16 static char probe(...);
17
18public:
19 static const bool value = sizeof(probe< T >(0)) == sizeof(int);
20};
static int probe(void(U::*)(void))
static const bool value
Definition: is_class.hpp:19
static char probe(...)