Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SafeBool< T > Class Template Reference

Implements the Save Bool Idiom. More...

#include <SafeBool.hpp>

List of all members.

Public Member Functions

 operator bool_type () const

Protected Types

typedef void(SafeBool::* bool_type )() const

Protected Member Functions

void this_type_does_not_support_comparisons () const

Detailed Description

template<typename T>
class SafeBool< T >

Implements the Save Bool Idiom.

Classes deriving off of SafeBool need to implement a 'bool boolean_test()' method. See: http://www.artima.com/cppsource/safebool.html.

Definition at line 19 of file SafeBool.hpp.


Member Typedef Documentation

template<typename T>
typedef void(SafeBool::* SafeBool< T >::bool_type)() const [protected]

Definition at line 22 of file SafeBool.hpp.


Member Function Documentation

template<typename T>
SafeBool< T >::operator bool_type (  )  const [inline]

Definition at line 26 of file SafeBool.hpp.

template<typename T>
void SafeBool< T >::this_type_does_not_support_comparisons (  )  const [inline, protected]

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


6 Jan 2011 Doxygen 1.6.3