#include <catch_option.hpp>
template<typename
T>
class Catch::Option< T >
Definition at line 15 of file catch_option.hpp.
◆ Option() [1/3]
◆ Option() [2/3]
Definition at line 18 of file catch_option.hpp.
19 : nullableValue(
new( storage )
T( _value ) )
20 {}
#define T(meth, val, expected)
◆ Option() [3/3]
Definition at line 21 of file catch_option.hpp.
22 : nullableValue( _other ?
new( storage )
T( *_other ) :
nullptr )
23 {}
◆ ~Option()
◆ none()
◆ operator bool()
◆ operator!()
◆ operator*() [1/2]
◆ operator*() [2/2]
◆ operator->() [1/2]
◆ operator->() [2/2]
◆ operator=() [1/2]
Definition at line 29 of file catch_option.hpp.
29 {
30 if( &_other != this ) {
32 if( _other )
33 nullableValue =
new( storage )
T( *_other );
34 }
35 return *this;
36 }
◆ operator=() [2/2]
Definition at line 37 of file catch_option.hpp.
37 {
39 nullableValue =
new( storage )
T( _value );
40 return *this;
41 }
◆ reset()
Definition at line 43 of file catch_option.hpp.
43 {
44 if( nullableValue )
45 nullableValue->~T();
46 nullableValue = nullptr;
47 }
◆ some()
◆ valueOr()
Definition at line 54 of file catch_option.hpp.
54 {
56 }
const GenericPointer< typename T::ValueType > T2 defaultValue
The documentation for this class was generated from the following file: