#include <optional.h>
Public Member Functions | |
OptScalarStorage () | |
OptScalarStorage (NO_VALUE_TYPE) | |
OptScalarStorage & | operator= (NO_VALUE_TYPE) |
OptScalarStorage (const OptScalarStorage &)=default | |
OptScalarStorage & | operator= (const OptScalarStorage &)=default |
template<typename U > | |
OptScalarStorage (U value) | |
template<typename U > | |
OptScalarStorage & | operator= (U value) |
template<typename U > | |
OptScalarStorage (IN_PLACE_TYPE, U value) | |
template<typename U > | |
void | Emplace (U value) |
Result< void > | CopyFrom (const OptScalarStorage &src) |
T & | GetValueRef () |
const T & | GetValueRef () const |
Bool | HasValue () const |
Private Attributes | |
Bool | _hasValue |
T | _valueStorage |
OptScalarStorage | ( | ) |
|
explicit |
|
default |
|
explicit |
|
explicit |
OptScalarStorage& operator= | ( | NO_VALUE_TYPE | ) |
|
default |
OptScalarStorage& operator= | ( | U | value | ) |
void Emplace | ( | U | value | ) |
Result<void> CopyFrom | ( | const OptScalarStorage< T > & | src | ) |
T& GetValueRef | ( | ) |
const T& GetValueRef | ( | ) | const |
Bool HasValue | ( | ) | const |
|
private |
|
private |