MPL11
 All Classes Namespaces Files Typedefs Macros Groups Pages
boost::mpl11::if_< Condition, Then, Else > Struct Template Reference

Evaluates one of two branches based on a condition. More...

#include <boost/mpl11/fwd/logical.hpp>

Detailed Description

template<typename Condition, typename Then, typename Else>
struct boost::mpl11::if_< Condition, Then, Else >

Evaluates one of two branches based on a condition.

Specifically, if_<Condition, Then, Else> is equivalent to Then if Condition::type::value evaluates to true, and to Else otherwise.

if_ can be combined with else_if and else_ to improve readability.