Library of Assembled Shared Sources
lass::meta::Select< Condition, TrueType, FalseType > Struct Template Reference

Select a type based on a meta condition that evaluates to meta::True or meta::False. More...

#include <select.h>

Inheritance diagram for lass::meta::Select< Condition, TrueType, FalseType >:

Detailed Description

template<typename Condition, typename TrueType, typename FalseType>
struct lass::meta::Select< Condition, TrueType, FalseType >

Select a type based on a meta condition that evaluates to meta::True or meta::False.

It differs from meta::If by the fact that TrueType and FalseType do not have to be meta expressions, as a typedef is used rather than inheritance to select the type. meta::Select is useful if TrueType and FalseType are regular types like for example int or std::string.

Using meta::Wrap, you can express the functionality of meta::Select in terms of meta::If as following:

Evaluates meta expression TrueType or FalseType based on a meta condition Condition.
Definition if.h:84
Select a type based on a meta condition that evaluates to meta::True or meta::False.
Definition meta/select.h:70

Definition at line 69 of file meta/select.h.


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