library of assembled shared sources |
http://lass.cocamware.com |
#include <select.h>
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:
Select<Cond, A, B>::Type <-> If<Cond, Wrap<A>, Wrap<B> >::Type;
Definition at line 69 of file meta/select.h.
Generated on Mon Nov 10 14:22:10 2008 for Library of Assembled Shared Sources by 1.5.7.1 |