3-phase PV router
Loading...
Searching...
No Matches
enable_if.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
7// A meta-function that return the type T if Condition is true.
8template< bool Condition, typename T = void >
10{
11};
12
13template< typename T >
14struct enable_if< true, T >
15{
16 using type = T;
17};
18
19template< bool Condition, typename T = void >
typename enable_if< Condition, T >::type enable_if_t
Definition enable_if.hpp:20