include
ecl
mpl
enable_if.hpp
Go to the documentation of this file.
1
8
/*****************************************************************************
9
** Ifdefs
10
*****************************************************************************/
11
12
#ifndef ECL_MPL_ENABLE_HPP_
13
#define ECL_MPL_ENABLE_HPP_
14
15
/*****************************************************************************
16
** Namespaces
17
*****************************************************************************/
18
19
namespace
ecl
{
20
26
template
<
bool
B,
class
T =
void
>
27
struct
enable_if_c
28
{
29
typedef
T
type
;
30
};
31
37
template
<
class
T>
38
struct
enable_if_c
<false, T>
39
{};
40
66
template
<
class
Condition,
class
T =
void
>
67
struct
enable_if
:
public
enable_if_c
<Condition::value, T>
68
{};
69
70
}
//namespace ecl
71
72
#endif
/* ECL_MPL_ENABLE_HPP_ */
ecl::enable_if_c
Conditional class for (true) implementation of enable_if.
Definition:
enable_if.hpp:31
ecl::enable_if
Enables the SFINAE concept.
Definition:
enable_if.hpp:71
ecl::enable_if_c::type
T type
Definition:
enable_if.hpp:37
ecl
Embedded control libraries.
ecl_mpl
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:18