trip_bool Class Template Reference

#include <stlsoft/util/trip_bool.hpp>

List of all members.

Detailed Description

template<bool V>
class stlsoft::trip_bool< V >

This template was inspired by Bill Rubin's "Trip Switch Booleans in C++" article in August 2006 issue of CVu.

Public Types

Member Types and Constants
enum  { value = V }
typedef bool value_type
 The value type.
typedef trip_bool< V > class_type
 The current instantiation of the template.

Public Member Functions

 trip_bool (bool v=!V)
 Constructs an instance of the class.
 operator value_type () const
void trip ()

Member Typedef Documentation

typedef bool value_type

The value type.

typedef trip_bool<V> class_type

The current instantiation of the template.

Constructor & Destructor Documentation

trip_bool ( bool  v = !V  )  [inline]

Constructs an instance of the class.

v The initial value of the trip instance. Defaults to !V

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

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