3-phase PV router
Loading...
Searching...
No Matches
conditional.hpp
Go to the documentation of this file.
1// ArduinoJson - https://arduinojson.org
2// Copyright © 2014-2024, Benoit BLANCHON
3// MIT License
4
5#pragma once
6
7template< bool Condition, class TrueType, class FalseType >
8struct conditional {
9 using type = TrueType;
10};
11
12template< class TrueType, class FalseType >
13struct conditional<false, TrueType, FalseType> {
14 using type = FalseType;
15};
16
17template <bool Condition, class TrueType, class FalseType>
20
typename conditional< Condition, TrueType, FalseType >::type conditional_t
Definition: conditional.hpp:19
TrueType type
Definition: conditional.hpp:9