libstdc++
std::experimental::fundamentals_v1::optional< _Tp > Class Template Reference
Inheritance diagram for std::experimental::fundamentals_v1::optional< _Tp >:
[legend]

List of all members.

Public Member Functions

template<typename _Up , enable_if_t< __and_< __not_< is_same< _Tp, _Up >>, is_constructible< _Tp, _Up && >, is_convertible< _Up &&, _Tp > >::value, bool > = true>
constexpr optional (_Up &&__t)
template<typename _Up , enable_if_t< __and_< __not_< is_same< _Tp, _Up >>, is_constructible< _Tp, _Up && >, __not_< is_convertible< _Up &&, _Tp >> >::value, bool > = false>
constexpr optional (_Up &&__t)
template<typename _Up , enable_if_t< __and_< __not_< is_same< _Tp, _Up >>, __not_< is_constructible< _Tp, const optional< _Up > & >>, __not_< is_convertible< const optional< _Up > &, _Tp >>, is_constructible< _Tp, const _Up & >, is_convertible< const _Up &, _Tp > >::value, bool > = true>
constexpr optional (const optional< _Up > &__t)
template<typename _Up , enable_if_t< __and_< __not_< is_same< _Tp, _Up >>, __not_< is_constructible< _Tp, const optional< _Up > & >>, __not_< is_convertible< const optional< _Up > &, _Tp >>, is_constructible< _Tp, const _Up & >, __not_< is_convertible< const _Up &, _Tp >> >::value, bool > = false>
constexpr optional (const optional< _Up > &__t)
template<typename _Up , enable_if_t< __and_< __not_< is_same< _Tp, _Up >>, __not_< is_constructible< _Tp, optional< _Up > && >>, __not_< is_convertible< optional< _Up > &&, _Tp >>, is_constructible< _Tp, _Up && >, is_convertible< _Up &&, _Tp > >::value, bool > = true>
constexpr optional (optional< _Up > &&__t)
template<typename _Up , enable_if_t< __and_< __not_< is_same< _Tp, _Up >>, __not_< is_constructible< _Tp, optional< _Up > && >>, __not_< is_convertible< optional< _Up > &&, _Tp >>, is_constructible< _Tp, _Up && >, __not_< is_convertible< _Up &&, _Tp >> >::value, bool > = false>
constexpr optional (optional< _Up > &&__t)
void declval ())))
template<typename... _Args>
void emplace (_Args &&...__args)
template<typename _Up , typename... _Args>
enable_if_t< is_constructible
< _Tp, initializer_list< _Up >
&, _Args &&...>::value > 
emplace (initializer_list< _Up > __il, _Args &&...__args)
constexpr operator bool () const noexcept
constexpr const _Tp & operator* () const &
constexpr _Tp & operator* ()&
constexpr _Tp && operator* ()&&
constexpr const _Tp && operator* () const &&
constexpr const _Tp * operator-> () const
_Tp * operator-> ()
optionaloperator= (nullopt_t) noexcept
template<typename _Up , enable_if_t< __and_< __not_< is_same< _Up, nullopt_t >>, __not_< __is_optional< _Up >>>::value, bool > = true>
optionaloperator= (_Up &&__u)
template<typename _Up , enable_if_t< __and_< __not_< is_same< _Tp, _Up >>>::value, bool > = true>
optionaloperator= (const optional< _Up > &__u)
template<typename _Up , enable_if_t< __and_< __not_< is_same< _Tp, _Up >>>::value, bool > = true>
optionaloperator= (optional< _Up > &&__u)
void swap (optional &__other) noexcept(is_nothrow_move_constructible< _Tp >()&&noexcept(swap(declval< _Tp & >()
constexpr const _Tp & value () const &
constexpr _Tp & value ()&
constexpr _Tp && value ()&&
constexpr const _Tp && value () const &&
template<typename _Up >
constexpr _Tp value_or (_Up &&__u) const &
template<typename _Up >
_Tp value_or (_Up &&__u)&&

Private Member Functions

void _Args ())
void _M_construct (_Args &&...__args) noexcept(is_nothrow_constructible< _Stored_type
void _M_destruct ()
 _M_engaged (true)
constexpr _Tp & _M_get () noexcept
constexpr const _Tp & _M_get () const noexcept
constexpr bool _M_is_engaged () const noexcept
void _M_reset ()
_Optional_base is_nothrow_move_assignable ())

Private Attributes

_Empty_byte _M_empty
_Stored_type _M_payload

Detailed Description

template<typename _Tp>
class std::experimental::fundamentals_v1::optional< _Tp >

Class template for optional values.

Definition at line 494 of file optional.


The documentation for this class was generated from the following file: