3-phase PV router
Loading...
Searching...
No Matches
Mk2_3phase_RFdatalog_temp
type_traits
is_base_of.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
#include "
remove_reference.hpp
"
7
8
// A meta-function that returns true if Derived inherits from TBase is an
9
// integral type.
10
template
<
typename
TBase,
typename
TDerived >
11
class
is_base_of
12
{
13
protected
:
// <- to avoid GCC's "all member functions in class are private"
14
static
int
probe
(
const
TBase*);
15
static
char
probe
(...);
16
17
public
:
18
static
const
bool
value
=
19
sizeof
(
probe
(
reinterpret_cast<
typename
remove_reference< TDerived >::type
*
>
(
20
0)))
21
==
sizeof
(
int
);
22
};
is_base_of
Definition:
is_base_of.hpp:12
is_base_of::probe
static int probe(const TBase *)
is_base_of::probe
static char probe(...)
is_base_of::value
static const bool value
Definition:
is_base_of.hpp:18
remove_reference.hpp
remove_reference::type
T type
Definition:
remove_reference.hpp:11
Generated by
1.9.6