|
C++ Actor Framework 0.19
|
Template specialization to allow optional to hold a reference rather than an actual value with minimal overhead.
More...
#include <optional.hpp>
Public Types | |
| using | type = T |
Public Member Functions | |
| optional (const none_t &=none) | |
| optional (T &x) | |
| optional (T *x) | |
| optional (const optional &other)=default | |
| optional & | operator= (const optional &other)=default |
| operator bool () const | |
| bool | operator! () const |
| T & | operator* () |
| const T & | operator* () const |
| T * | operator-> () |
| const T * | operator-> () const |
| T & | value () |
| const T & | value () const |
| const T & | value_or (const T &default_value) const |
Template specialization to allow optional to hold a reference rather than an actual value with minimal overhead.