3-phase PV router
Loading...
Searching...
No Matches
Mk2_3phase_RFdatalog_temp
type_traits
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
9
template
<
typename
T >
10
struct
is_class
11
{
12
protected
:
// <- 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
18
public
:
19
static
const
bool
value
=
sizeof
(probe< T >(0)) ==
sizeof
(
int
);
20
};
declval.hpp
is_class
Definition:
is_class.hpp:11
is_class::probe
static int probe(void(U::*)(void))
is_class::value
static const bool value
Definition:
is_class.hpp:19
is_class::probe
static char probe(...)
Generated by
1.9.6