#include <stlsoft/util/operator_bool.hpp>
Public Types | |
typedef operator_bool_generator< T > | class_type |
typedef class_type const * | return_type |
Static Public Member Functions | |
static return_type | true_value () |
Returns the value representing the true condition. | |
static return_type | false_value () |
Returns the value representing the false condition. | |
template<typename U> | |
static return_type | translate (U b) |
Does the ternary operator for you. |
static return_type true_value | ( | ) | [inline, static] |
Returns the value representing the true condition.
Referenced by operator_bool_generator::translate().
static return_type false_value | ( | ) | [inline, static] |
Returns the value representing the false condition.
Referenced by operator_bool_generator::translate().
static return_type translate | ( | U | b | ) | [inline, static] |
Does the ternary operator for you.
References operator_bool_generator::false_value(), and operator_bool_generator::true_value().