|
|
| Optional () |
| | Uninitialized instance.
|
| |
|
| Optional (const T &val) |
| | Constructs the optional object.
|
| |
| | Optional (const Optional< T > &opt) |
| | Initializes the contained value by copying the contained value of other, but only if other is engaged. More...
|
| |
|
Optional & | operator= (const Optional< T > &opt) |
| | Assigns contents.
|
| |
|
Optional & | operator= (const T &val) |
| | Assigns contents.
|
| |
|
| ~Optional () |
| | If engaged, destroys the contained value.
|
| |
|
| operator bool () const |
| | Checks whether the object is in engaged state.
|
| |
|
T & | operator* () |
| | Returns a reference to the contained value.
|
| |
|
const T & | operator* () const |
| | Returns a const reference to the contained value.
|
| |
|
T & | value () |
| | A reference to the contained value.
|
| |
|
const T & | value () const |
| | A const reference to the contained value.
|
| |
|
void | reset () |
| | Reset stored value and set state to Uninitialized.
|
| |