operator_bool_generator Struct Template Reference
[Utility Library]

#include <stlsoft/util/operator_bool.hpp>

List of all members.


Detailed Description

template<typename T>
struct stlsoft::operator_bool_generator< T >

Template which provides the types and conversion operations for safe and highly-portable "<code>operator bool() const</code>".

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.

Member Function Documentation

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 ( b  )  [inline, static]

Does the ternary operator for you.

References operator_bool_generator::false_value(), and operator_bool_generator::true_value().


The documentation for this struct was generated from the following file:

Generated on Thu Jun 10 08:59:02 2010 for STLSoft by  doxygen 1.5.6