Public Types
ecl::if_c< Condition, T1, T2 > Struct Template Reference

The metaprogramming equivalent of the 'if' function. More...

#include <if.hpp>

List of all members.

Public Types

typedef T1 type

Detailed Description

template<bool Condition, typename T1, typename T2>
struct ecl::if_c< Condition, T1, T2 >

The metaprogramming equivalent of the 'if' function.

This defines a compile time metafunctional version of the 'if' function. It configures the default response (that for when the boolean condition is true). The alternative (false) is configured in a specialisation.

Template Parameters:
Condition: the logical condition to test.
T1: the return type if true.
T2: the return type if false.
See also:
if_c<false,T1,T2>.

Definition at line 35 of file if.hpp.


Member Typedef Documentation

template<bool Condition, typename T1 , typename T2 >
typedef T1 ecl::if_c< Condition, T1, T2 >::type

Definition at line 36 of file if.hpp.


The documentation for this struct was generated from the following file:


ecl_mpl
Author(s): Daniel Stonier
autogenerated on Thu Jun 6 2019 21:17:27