Main Page
Modules
Namespaces
Classes
Files
File List
File Members
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
ecl::if_c::type
T1 type
xbot_node
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:28:13