All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
gears::concepts::ContextualBool< T > Struct Template Reference

Checks if a type can be convertible to bool. More...

Inherits is_constructible< bool, T >.

Detailed Description

template<typename T>
struct gears::concepts::ContextualBool< T >

A Unary concept that checks if a type can be convertible to bool.

Convertibility to bool is helpful if you want to use the code as a predicate or in boolean conditions. The following are situations where ContextualBool would assert are valid:

if(X) {
}
while(X) {
}
else if(X) {
}

where X is an instance of type T.

Template Parameters
TType to check

Definition at line 350 of file basic.hpp.