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