$darkmode
specialize optional for reference. sizeof(optional<T&>) == sizeof(T*) More...
#include <optional.hpp>
Public Member Functions | |
| optional (nullopt_t) | |
| optional (const optional &other) | |
| optional (T &value) | |
| optional & | operator= (nullopt_t) |
| optional & | operator= (const optional &other) |
| optional & | operator= (T &value) |
| operator bool_type () const | |
| T & | value () |
| const T & | value () const |
| T & | value_or (T &default_value) const |
| const T * | operator-> () const |
| T * | operator-> () |
| const T & | operator* () const |
| T & | operator* () |
specialize optional for reference. sizeof(optional<T&>) == sizeof(T*)