lab_trees
Tempestuous Trees
Catch::Option< T > Class Template Reference

Public Member Functions

 Option (T const &_value)
 
 Option (Option const &_other)
 
Optionoperator= (Option const &_other)
 
Optionoperator= (T const &_value)
 
void reset ()
 
T & operator* ()
 
T const & operator* () const
 
T * operator-> ()
 
const T * operator-> () const
 
valueOr (T const &defaultValue) const
 
bool some () const
 
bool none () const
 
bool operator! () const
 
 operator SafeBool::type () const
 

Private Attributes

T * nullableValue
 
union {
   char   storage [sizeof(T)]
 
   long double   dummy1
 
   void(*   dummy2 )()
 
   long double   dummy3
 
}; 
 

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