if.hpp
Go to the documentation of this file.
1 
8 /*****************************************************************************
9 ** Ifdefs
10 *****************************************************************************/
11 
12 #ifndef ECL_MPL_IF_HPP_
13 #define ECL_MPL_IF_HPP_
14 
15 /*****************************************************************************
16 ** Namespaces
17 *****************************************************************************/
18 
19 namespace ecl {
20 
34 template <bool Condition, typename T1, typename T2>
35 struct if_c {
36  typedef T1 type;
37 };
38 
50 template <typename T1, typename T2>
51 struct if_c<false,T1,T2> {
52  typedef T2 type;
53 };
54 
55 } // namespace ecl
56 
57 #endif /* ECL_MPL_IF_HPP_ */
Embedded control libraries.
T1 type
Definition: if.hpp:36
The metaprogramming equivalent of the &#39;if&#39; function.
Definition: if.hpp:35


ecl_mpl
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:08:14