#include <nan.h>
Public Member Functions | |
T | FromJust () const |
T | FromMaybe (const T &default_value) const |
bool | IsJust () const |
bool | IsNothing () const |
bool | operator!= (const Maybe &other) const |
bool | operator== (const Maybe &other) const |
Private Member Functions | |
Maybe () | |
Maybe (const T &t) | |
Private Attributes | |
bool | has_value_ |
T | value_ |
Friends | |
template<typename U > | |
Maybe< U > | Just (const U &u) |
template<typename U > | |
Maybe< U > | Nothing () |
Nan::Maybe< T >::Maybe | ( | ) | [inline, private] |
Nan::Maybe< T >::Maybe | ( | const T & | t | ) | [inline, explicit, private] |
T Nan::Maybe< T >::FromJust | ( | ) | const [inline] |
T Nan::Maybe< T >::FromMaybe | ( | const T & | default_value | ) | const [inline] |
bool Nan::Maybe< T >::IsJust | ( | ) | const [inline] |
bool Nan::Maybe< T >::IsNothing | ( | ) | const [inline] |
bool Nan::Maybe< T >::operator!= | ( | const Maybe< T > & | other | ) | const [inline] |
bool Nan::Maybe< T >::operator== | ( | const Maybe< T > & | other | ) | const [inline] |
bool Nan::Maybe< T >::has_value_ [private] |
T Nan::Maybe< T >::value_ [private] |