include
ecl
mpl
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_ */
ecl
Embedded control libraries.
ecl::if_c< false, T1, T2 >::type
T2 type
Definition:
if.hpp:52
ecl::if_c::type
T1 type
Definition:
if.hpp:36
ecl::if_c
The metaprogramming equivalent of the 'if' function.
Definition:
if.hpp:35
ecl_mpl
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:18:28