3-phase PV router
Loading...
Searching...
No Matches
Mk2_3phase_RFdatalog_temp
type_traits
integral_constant.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
template
<
typename
T, T v >
8
struct
integral_constant
9
{
10
static
constexpr
T
value
= v;
11
using
value_type
= T;
12
using
type
=
integral_constant
;
// using injected-class-name
13
constexpr
operator
value_type
() const noexcept
14
{
15
return
value
;
16
}
17
constexpr
value_type
operator()
() const noexcept
18
{
19
return
value
;
20
}
// since c++14
21
};
22
23
typedef
integral_constant< bool, true >
true_type
;
24
typedef
integral_constant< bool, false >
false_type
;
true_type
integral_constant< bool, true > true_type
Definition:
integral_constant.hpp:23
false_type
integral_constant< bool, false > false_type
Definition:
integral_constant.hpp:24
integral_constant
Definition:
integral_constant.hpp:9
integral_constant::value_type
T value_type
Definition:
integral_constant.hpp:11
integral_constant::operator()
constexpr value_type operator()() const noexcept
Definition:
integral_constant.hpp:17
integral_constant::value
static constexpr T value
Definition:
integral_constant.hpp:10
Generated by
1.9.6