Public Types | List of all members
ecl::if_c< Condition, T1, T2 > Struct Template Reference

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

#include <if.hpp>

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 39 of file if.hpp.

Member Typedef Documentation

◆ type

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

Definition at line 44 of file if.hpp.


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


ecl_mpl
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:18