webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | List of all members
std::optional< T > Class Template Reference

#include <Forward.h>

Inheritance diagram for std::optional< T >:
WebCore::SuccessOr< T > WebCore::SuccessOr< T >

Public Types

typedef T value_type
 
typedef T value_type
 
typedef T value_type
 

Public Member Functions

constexpr optional () __NOEXCEPT
 
constexpr optional (nullopt_t) __NOEXCEPT
 
 optional (const optional &rhs)
 
 optional (optional &&rhs) __NOEXCEPT_(detail_
 
constexpr optional (const T &v)
 
constexpr optional (T &&v)
 
template<class... Args>
constexpr optional (in_place_t, Args &&... args)
 
template<class U , class... Args, TR2_OPTIONAL_REQUIRES(std::is_constructible< T, std::initializer_list< U >>) >
OPTIONAL_CONSTEXPR_INIT_LIST optional (in_place_t, std::initializer_list< U > il, Args &&... args)
 
 ~optional ()=default
 
optionaloperator= (nullopt_t) __NOEXCEPT
 
optionaloperator= (const optional &rhs)
 
optionaloperator= (optional &&rhs) __NOEXCEPT_(detail_
 
template<class U >
auto operator= (U &&v) -> typename std::enable_if< std::is_same< typename std::decay< U >::type, T >::value, optional &>::type
 
template<class... Args>
void emplace (Args &&... args)
 
template<class U , class... Args>
void emplace (std::initializer_list< U > il, Args &&... args)
 
void swap (optional< T > &rhs) __NOEXCEPT_(detail_
 
constexpr operator bool () const __NOEXCEPT
 
constexpr T const * operator-> () const
 
Toperator-> ()
 
constexpr T const & operator* () const
 
Toperator* ()
 
constexpr T const & value () const
 
Tvalue ()
 
template<class V >
constexpr T value_or (V &&v) const
 
constexpr optional () __NOEXCEPT
 
constexpr optional (nullopt_t) __NOEXCEPT
 
 optional (const optional &rhs)
 
 optional (optional &&rhs) __NOEXCEPT_(detail_
 
constexpr optional (const T &v)
 
constexpr optional (T &&v)
 
template<class... Args>
constexpr optional (in_place_t, Args &&... args)
 
template<class U , class... Args, TR2_OPTIONAL_REQUIRES(std::is_constructible< T, std::initializer_list< U >>) >
OPTIONAL_CONSTEXPR_INIT_LIST optional (in_place_t, std::initializer_list< U > il, Args &&... args)
 
 ~optional ()=default
 
optionaloperator= (nullopt_t) __NOEXCEPT
 
optionaloperator= (const optional &rhs)
 
optionaloperator= (optional &&rhs) __NOEXCEPT_(detail_
 
template<class U >
auto operator= (U &&v) -> typename std::enable_if< std::is_same< typename std::decay< U >::type, T >::value, optional &>::type
 
template<class... Args>
void emplace (Args &&... args)
 
template<class U , class... Args>
void emplace (std::initializer_list< U > il, Args &&... args)
 
void swap (optional< T > &rhs) __NOEXCEPT_(detail_
 
constexpr operator bool () const __NOEXCEPT
 
constexpr T const * operator-> () const
 
Toperator-> ()
 
constexpr T const & operator* () const
 
Toperator* ()
 
constexpr T const & value () const
 
Tvalue ()
 
template<class V >
constexpr T value_or (V &&v) const
 
constexpr optional () __NOEXCEPT
 
constexpr optional (nullopt_t) __NOEXCEPT
 
 optional (const optional &rhs)
 
 optional (optional &&rhs) __NOEXCEPT_(detail_
 
constexpr optional (const T &v)
 
constexpr optional (T &&v)
 
template<class... Args>
constexpr optional (in_place_t, Args &&... args)
 
template<class U , class... Args, TR2_OPTIONAL_REQUIRES(std::is_constructible< T, std::initializer_list< U >>) >
OPTIONAL_CONSTEXPR_INIT_LIST optional (in_place_t, std::initializer_list< U > il, Args &&... args)
 
 ~optional ()=default
 
optionaloperator= (nullopt_t) __NOEXCEPT
 
optionaloperator= (const optional &rhs)
 
optionaloperator= (optional &&rhs) __NOEXCEPT_(detail_
 
template<class U >
auto operator= (U &&v) -> typename std::enable_if< std::is_same< typename std::decay< U >::type, T >::value, optional &>::type
 
template<class... Args>
void emplace (Args &&... args)
 
template<class U , class... Args>
void emplace (std::initializer_list< U > il, Args &&... args)
 
void swap (optional< T > &rhs) __NOEXCEPT_(detail_
 
constexpr operator bool () const __NOEXCEPT
 
constexpr T const * operator-> () const
 
Toperator-> ()
 
constexpr T const & operator* () const
 
Toperator* ()
 
constexpr T const & value () const
 
Tvalue ()
 
template<class V >
constexpr T value_or (V &&v) const
 

Member Typedef Documentation

◆ value_type [1/3]

template<class T>
typedef T std::optional< T >::value_type

◆ value_type [2/3]

template<class T>
typedef T std::optional< T >::value_type

◆ value_type [3/3]

template<class T>
typedef T std::optional< T >::value_type

Constructor & Destructor Documentation

◆ optional() [1/24]

template<class T>
constexpr std::optional< T >::optional ( )
inline

◆ optional() [2/24]

template<class T>
constexpr std::optional< T >::optional ( nullopt_t  )
inline

◆ optional() [3/24]

template<class T>
std::optional< T >::optional ( const optional< T > &  rhs)
inline

◆ optional() [4/24]

template<class T>
std::optional< T >::optional ( optional< T > &&  rhs)
inline

◆ optional() [5/24]

template<class T>
constexpr std::optional< T >::optional ( const T v)
inline

◆ optional() [6/24]

template<class T>
constexpr std::optional< T >::optional ( T &&  v)
inline

◆ optional() [7/24]

template<class T>
template<class... Args>
constexpr std::optional< T >::optional ( in_place_t  ,
Args &&...  args 
)
inlineexplicit

◆ optional() [8/24]

template<class T>
template<class U , class... Args, TR2_OPTIONAL_REQUIRES(std::is_constructible< T, std::initializer_list< U >>) >
OPTIONAL_CONSTEXPR_INIT_LIST std::optional< T >::optional ( in_place_t  ,
std::initializer_list< U >  il,
Args &&...  args 
)
inlineexplicit

◆ ~optional() [1/3]

template<class T>
std::optional< T >::~optional ( )
default

◆ optional() [9/24]

template<class T>
constexpr std::optional< T >::optional ( )
inline

◆ optional() [10/24]

template<class T>
constexpr std::optional< T >::optional ( nullopt_t  )
inline

◆ optional() [11/24]

template<class T>
std::optional< T >::optional ( const optional< T > &  rhs)
inline

◆ optional() [12/24]

template<class T>
std::optional< T >::optional ( optional< T > &&  rhs)
inline

◆ optional() [13/24]

template<class T>
constexpr std::optional< T >::optional ( const T v)
inline

◆ optional() [14/24]

template<class T>
constexpr std::optional< T >::optional ( T &&  v)
inline

◆ optional() [15/24]

template<class T>
template<class... Args>
constexpr std::optional< T >::optional ( in_place_t  ,
Args &&...  args 
)
inlineexplicit

◆ optional() [16/24]

template<class T>
template<class U , class... Args, TR2_OPTIONAL_REQUIRES(std::is_constructible< T, std::initializer_list< U >>) >
OPTIONAL_CONSTEXPR_INIT_LIST std::optional< T >::optional ( in_place_t  ,
std::initializer_list< U >  il,
Args &&...  args 
)
inlineexplicit

◆ ~optional() [2/3]

template<class T>
std::optional< T >::~optional ( )
default

◆ optional() [17/24]

template<class T>
constexpr std::optional< T >::optional ( )
inline

◆ optional() [18/24]

template<class T>
constexpr std::optional< T >::optional ( nullopt_t  )
inline

◆ optional() [19/24]

template<class T>
std::optional< T >::optional ( const optional< T > &  rhs)
inline

◆ optional() [20/24]

template<class T>
std::optional< T >::optional ( optional< T > &&  rhs)
inline

◆ optional() [21/24]

template<class T>
constexpr std::optional< T >::optional ( const T v)
inline

◆ optional() [22/24]

template<class T>
constexpr std::optional< T >::optional ( T &&  v)
inline

◆ optional() [23/24]

template<class T>
template<class... Args>
constexpr std::optional< T >::optional ( in_place_t  ,
Args &&...  args 
)
inlineexplicit

◆ optional() [24/24]

template<class T>
template<class U , class... Args, TR2_OPTIONAL_REQUIRES(std::is_constructible< T, std::initializer_list< U >>) >
OPTIONAL_CONSTEXPR_INIT_LIST std::optional< T >::optional ( in_place_t  ,
std::initializer_list< U >  il,
Args &&...  args 
)
inlineexplicit

◆ ~optional() [3/3]

template<class T>
std::optional< T >::~optional ( )
default

Member Function Documentation

◆ emplace() [1/6]

template<class T>
template<class... Args>
void std::optional< T >::emplace ( Args &&...  args)
inline

◆ emplace() [2/6]

template<class T>
template<class... Args>
void std::optional< T >::emplace ( Args &&...  args)
inline

◆ emplace() [3/6]

template<class T>
template<class... Args>
void std::optional< T >::emplace ( Args &&...  args)
inline

◆ emplace() [4/6]

template<class T>
template<class U , class... Args>
void std::optional< T >::emplace ( std::initializer_list< U >  il,
Args &&...  args 
)
inline

◆ emplace() [5/6]

template<class T>
template<class U , class... Args>
void std::optional< T >::emplace ( std::initializer_list< U >  il,
Args &&...  args 
)
inline

◆ emplace() [6/6]

template<class T>
template<class U , class... Args>
void std::optional< T >::emplace ( std::initializer_list< U >  il,
Args &&...  args 
)
inline

◆ operator bool() [1/3]

template<class T>
constexpr std::optional< T >::operator bool ( ) const
inlineexplicit

◆ operator bool() [2/3]

template<class T>
constexpr std::optional< T >::operator bool ( ) const
inlineexplicit

◆ operator bool() [3/3]

template<class T>
constexpr std::optional< T >::operator bool ( ) const
inlineexplicit

◆ operator*() [1/6]

template<class T>
constexpr T const& std::optional< T >::operator* ( ) const
inline

◆ operator*() [2/6]

template<class T>
constexpr T const& std::optional< T >::operator* ( ) const
inline

◆ operator*() [3/6]

template<class T>
constexpr T const& std::optional< T >::operator* ( ) const
inline

◆ operator*() [4/6]

template<class T>
T& std::optional< T >::operator* ( )
inline

◆ operator*() [5/6]

template<class T>
T& std::optional< T >::operator* ( )
inline

◆ operator*() [6/6]

template<class T>
T& std::optional< T >::operator* ( )
inline

◆ operator->() [1/6]

template<class T>
constexpr T const* std::optional< T >::operator-> ( ) const
inline

◆ operator->() [2/6]

template<class T>
constexpr T const* std::optional< T >::operator-> ( ) const
inline

◆ operator->() [3/6]

template<class T>
constexpr T const* std::optional< T >::operator-> ( ) const
inline

◆ operator->() [4/6]

template<class T>
T* std::optional< T >::operator-> ( )
inline

◆ operator->() [5/6]

template<class T>
T* std::optional< T >::operator-> ( )
inline

◆ operator->() [6/6]

template<class T>
T* std::optional< T >::operator-> ( )
inline

◆ operator=() [1/12]

template<class T>
optional& std::optional< T >::operator= ( nullopt_t  )
inline

◆ operator=() [2/12]

template<class T>
optional& std::optional< T >::operator= ( nullopt_t  )
inline

◆ operator=() [3/12]

template<class T>
optional& std::optional< T >::operator= ( nullopt_t  )
inline

◆ operator=() [4/12]

template<class T>
optional& std::optional< T >::operator= ( const optional< T > &  rhs)
inline

◆ operator=() [5/12]

template<class T>
optional& std::optional< T >::operator= ( const optional< T > &  rhs)
inline

◆ operator=() [6/12]

template<class T>
optional& std::optional< T >::operator= ( const optional< T > &  rhs)
inline

◆ operator=() [7/12]

template<class T>
optional& std::optional< T >::operator= ( optional< T > &&  rhs)
inline

◆ operator=() [8/12]

template<class T>
optional& std::optional< T >::operator= ( optional< T > &&  rhs)
inline

◆ operator=() [9/12]

template<class T>
optional& std::optional< T >::operator= ( optional< T > &&  rhs)
inline

◆ operator=() [10/12]

template<class T>
template<class U >
auto std::optional< T >::operator= ( U &&  v) -> typename std::enable_if < std::is_same<typename std::decay<U>::type, T>::value, optional& >::type
inline

◆ operator=() [11/12]

template<class T>
template<class U >
auto std::optional< T >::operator= ( U &&  v) -> typename std::enable_if < std::is_same<typename std::decay<U>::type, T>::value, optional& >::type
inline

◆ operator=() [12/12]

template<class T>
template<class U >
auto std::optional< T >::operator= ( U &&  v) -> typename std::enable_if < std::is_same<typename std::decay<U>::type, T>::value, optional& >::type
inline

◆ swap() [1/3]

template<class T>
void std::optional< T >::swap ( optional< T > &  rhs)
inline

◆ swap() [2/3]

template<class T>
void std::optional< T >::swap ( optional< T > &  rhs)
inline

◆ swap() [3/3]

template<class T>
void std::optional< T >::swap ( optional< T > &  rhs)
inline

◆ value() [1/6]

template<class T>
constexpr T const& std::optional< T >::value ( ) const
inline

◆ value() [2/6]

template<class T>
constexpr T const& std::optional< T >::value ( ) const
inline

◆ value() [3/6]

template<class T>
constexpr T const& std::optional< T >::value ( ) const
inline

◆ value() [4/6]

template<class T>
T& std::optional< T >::value ( )
inline

◆ value() [5/6]

template<class T>
T& std::optional< T >::value ( )
inline

◆ value() [6/6]

template<class T>
T& std::optional< T >::value ( )
inline

◆ value_or() [1/3]

template<class T>
template<class V >
constexpr T std::optional< T >::value_or ( V &&  v) const
inline

◆ value_or() [2/3]

template<class T>
template<class V >
constexpr T std::optional< T >::value_or ( V &&  v) const
inline

◆ value_or() [3/3]

template<class T>
template<class V >
constexpr T std::optional< T >::value_or ( V &&  v) const
inline

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