operator_bool_adaptor Class Template Reference
[Utility Library]

#include <stlsoft/util/operator_bool_adaptor.hpp>

List of all members.


Detailed Description

template<typename T>
class stlsoft::operator_bool_adaptor< T >

This class is a reverse bolt-in, which provides the "safe" operator bool to its parameterising type, in terms of its is_open method.

Range operators

 operator boolean_type () const
 Indicates whether the range is open.

Public Types

typedef T adapted_type
 The adapted type.
typedef operator_bool_adaptor< T > class_type
 The type of this instantiation.

Protected Member Functions

 operator_bool_adaptor ()
 Default constructor.

Member Typedef Documentation

typedef T adapted_type

The adapted type.

The type of this instantiation.


Constructor & Destructor Documentation

operator_bool_adaptor (  )  [inline, protected]

Default constructor.

This is defined protected to ensure that the adaptor may only be used as a base class, and not instantiated directly


Member Function Documentation

operator boolean_type (  )  const [inline]

Indicates whether the range is open.


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

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