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 >
9struct enable_if {};
10
11template< typename T >
12struct enable_if<true, T> {
13 using type = T;
14};
15
16template <bool Condition, typename T = void >
typename enable_if< Condition, T >::type enable_if_t
Definition: enable_if.hpp:17