Template Class optional

Class Documentation

template<class T>
class optional

Public Functions

optional() = default
inline optional(T t)
inline WISE_ENUM_CONSTEXPR_14 T & operator* () &
inline constexpr const T &operator*() const &
inline WISE_ENUM_CONSTEXPR_14 T && operator* () &&
inline constexpr const T &&operator*() const &&
inline explicit constexpr operator bool() const noexcept
inline constexpr bool has_value() const noexcept
inline WISE_ENUM_CONSTEXPR_14 T & value () &
inline WISE_ENUM_CONSTEXPR_14 const T & value () const &
inline WISE_ENUM_CONSTEXPR_14 T && value () &&
inline WISE_ENUM_CONSTEXPR_14 const T && value () const &&
template<class U> inline WISE_ENUM_CONSTEXPR_14 T value_or (U &&u)
inline void reset() noexcept
optional(const optional &other) = default
optional(optional &&other) = default
optional &operator=(const optional &other) = default
optional &operator=(optional &&other) = default