|
CONSTEXPR | Optional (const Optional &other) |
|
CONSTEXPR | Optional (nullopt_t) |
|
template<typename U > |
| Optional (const Optional< U > &other) |
|
template<typename U > |
| Optional (Optional< U > &&other) |
|
template<class... Args> |
CONSTEXPR | Optional (in_place_t, Args &&... args) |
|
template<class U , class... Args> |
CONSTEXPR | Optional (in_place_t, std::initializer_list< U > il, Args &&... args) |
|
template<typename U = value_type> |
CONSTEXPR | Optional (U &&value) |
|
Optional & | operator= (const Optional &other) |
|
Optional & | operator= (nullopt_t) |
|
template<typename U > |
Optional & | operator= (U &&value) |
|
template<typename U > |
Optional & | operator= (const Optional< U > &other) |
|
template<typename U > |
Optional & | operator= (Optional< U > &&other) |
|
const T * | operator-> () const |
|
const T & | operator* () const |
|
T & | operator* () |
|
CONSTEXPR | operator bool () const |
|
CONSTEXPR bool | has_value () const |
|
const T & | value () const |
|
template<class U > |
CONSTEXPR T | value_or (U &&default_value) const |
|
void | swap (Optional &other) |
|
void | reset () |
|
template<class... Args> |
T & | emplace (Args &&... args) |
|
template<class U , class... Args> |
T & | emplace (std::initializer_list< U > il, Args &&... args) |
|