#include <catch.hpp>
Public Member Functions | |
Option () | |
Option (T const &_value) | |
Option (Option const &_other) | |
~Option () | |
Option & | operator= (Option const &_other) |
Option & | operator= (T const &_value) |
void | reset () |
T & | operator* () |
T const & | operator* () const |
T * | operator-> () |
const T * | operator-> () const |
T | valueOr (T const &defaultValue) const |
bool | some () const |
bool | none () const |
bool | operator! () const |
operator bool () const | |
Private Attributes | |
T * | nullableValue |
char | storage [sizeof(T)] |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |