Library of Assembled Shared Sources
|
Select a type based on a meta condition that evaluates to meta::True or meta::False. More...
#include <select.h>
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:
Definition at line 69 of file meta/select.h.