Template Class optional

Class Documentation

template<typename T>
class optional

class optional

optional access error

optional

Public Types

typedef T value_type

Public Functions

inline optional_constexpr optional () optional_noexcept
inline optional_constexpr optional (nullopt_t) optional_noexcept
inline optional_constexpr14 optional(optional const &other)
template<typename U>
inline optional(optional<U> const &other)
inline optional(value_type const &value)
inline ~optional()
inline optional & operator= (nullopt_t) optional_noexcept
inline optional &operator=(optional const &other)
template<typename U>
inline optional &operator=(U const &value)
template<typename U>
inline optional &operator=(optional<U> const &other)
inline void swap(optional &other)
inline optional_constexpr value_type const * operator-> () const
inline optional_constexpr14 value_type * operator-> ()
inline optional_constexpr value_type const & operator* () const optional_ref_qual
inline optional_constexpr14 value_type & operator* () optional_ref_qual
inline optional_constexpr operator safe_bool () const optional_noexcept
inline optional_constexpr bool has_value () const optional_noexcept
inline optional_constexpr14 value_type const & value () const optional_ref_qual
inline optional_constexpr14 value_type & value () optional_ref_qual
template<typename U> inline optional_constexpr value_type value_or (U const &v) const
inline void reset () optional_noexcept