webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
std::optional< T & > Class Template Reference

#include <Optional.h>

Public Member Functions

constexpr optional () __NOEXCEPT
 
constexpr optional (nullopt_t) __NOEXCEPT
 
constexpr optional (T &v) __NOEXCEPT
 
 optional (T &&)=delete
 
constexpr optional (const optional &rhs) __NOEXCEPT
 
constexpr optional (in_place_t, T &v) __NOEXCEPT
 
 optional (in_place_t, T &&)=delete
 
 ~optional ()=default
 
optionaloperator= (nullopt_t) __NOEXCEPT
 
template<typename U >
auto operator= (U &&rhs) __NOEXCEPT -> typename std::enable_if< std::is_same< typename std::decay< U >::type, optional< T &>>::value, optional &>::type
 
template<typename U >
auto operator= (U &&rhs) __NOEXCEPT -> typename std::enable_if< !std::is_same< typename std::decay< U >::type, optional< T &>>::value, optional &>::type=delete
 
void emplace (T &v) __NOEXCEPT
 
void emplace (T &&)=delete
 
void swap (optional< T &> &rhs) __NOEXCEPT
 
constexpr Toperator-> () const
 
constexpr Toperator* () const
 
constexpr Tvalue () const
 
constexpr operator bool () const __NOEXCEPT
 
template<class V >
constexpr std::decay< T >::type value_or (V &&v) const
 
constexpr optional () __NOEXCEPT
 
constexpr optional (nullopt_t) __NOEXCEPT
 
constexpr optional (T &v) __NOEXCEPT
 
 optional (T &&)=delete
 
constexpr optional (const optional &rhs) __NOEXCEPT
 
constexpr optional (in_place_t, T &v) __NOEXCEPT
 
 optional (in_place_t, T &&)=delete
 
 ~optional ()=default
 
optionaloperator= (nullopt_t) __NOEXCEPT
 
template<typename U >
auto operator= (U &&rhs) __NOEXCEPT -> typename std::enable_if< std::is_same< typename std::decay< U >::type, optional< T &>>::value, optional &>::type
 
template<typename U >
auto operator= (U &&rhs) __NOEXCEPT -> typename std::enable_if< !std::is_same< typename std::decay< U >::type, optional< T &>>::value, optional &>::type=delete
 
void emplace (T &v) __NOEXCEPT
 
void emplace (T &&)=delete
 
void swap (optional< T &> &rhs) __NOEXCEPT
 
constexpr Toperator-> () const
 
constexpr Toperator* () const
 
constexpr Tvalue () const
 
constexpr operator bool () const __NOEXCEPT
 
template<class V >
constexpr std::decay< T >::type value_or (V &&v) const
 
constexpr optional () __NOEXCEPT
 
constexpr optional (nullopt_t) __NOEXCEPT
 
constexpr optional (T &v) __NOEXCEPT
 
 optional (T &&)=delete
 
constexpr optional (const optional &rhs) __NOEXCEPT
 
constexpr optional (in_place_t, T &v) __NOEXCEPT
 
 optional (in_place_t, T &&)=delete
 
 ~optional ()=default
 
optionaloperator= (nullopt_t) __NOEXCEPT
 
template<typename U >
auto operator= (U &&rhs) __NOEXCEPT -> typename std::enable_if< std::is_same< typename std::decay< U >::type, optional< T &>>::value, optional &>::type
 
template<typename U >
auto operator= (U &&rhs) __NOEXCEPT -> typename std::enable_if< !std::is_same< typename std::decay< U >::type, optional< T &>>::value, optional &>::type=delete
 
void emplace (T &v) __NOEXCEPT
 
void emplace (T &&)=delete
 
void swap (optional< T &> &rhs) __NOEXCEPT
 
constexpr Toperator-> () const
 
constexpr Toperator* () const
 
constexpr Tvalue () const
 
constexpr operator bool () const __NOEXCEPT
 
template<class V >
constexpr std::decay< T >::type value_or (V &&v) const
 

Constructor & Destructor Documentation

◆ optional() [1/21]

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

◆ optional() [2/21]

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

◆ optional() [3/21]

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

◆ optional() [4/21]

template<class T >
std::optional< T & >::optional ( T &&  )
delete

◆ optional() [5/21]

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

◆ optional() [6/21]

template<class T >
constexpr std::optional< T & >::optional ( in_place_t  ,
T v 
)
inlineexplicit

◆ optional() [7/21]

template<class T >
std::optional< T & >::optional ( in_place_t  ,
T &&   
)
explicitdelete

◆ ~optional() [1/3]

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

◆ optional() [8/21]

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

◆ optional() [9/21]

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

◆ optional() [10/21]

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

◆ optional() [11/21]

template<class T >
std::optional< T & >::optional ( T &&  )
delete

◆ optional() [12/21]

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

◆ optional() [13/21]

template<class T >
constexpr std::optional< T & >::optional ( in_place_t  ,
T v 
)
inlineexplicit

◆ optional() [14/21]

template<class T >
std::optional< T & >::optional ( in_place_t  ,
T &&   
)
explicitdelete

◆ ~optional() [2/3]

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

◆ optional() [15/21]

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

◆ optional() [16/21]

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

◆ optional() [17/21]

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

◆ optional() [18/21]

template<class T >
std::optional< T & >::optional ( T &&  )
delete

◆ optional() [19/21]

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

◆ optional() [20/21]

template<class T >
constexpr std::optional< T & >::optional ( in_place_t  ,
T v 
)
inlineexplicit

◆ optional() [21/21]

template<class T >
std::optional< T & >::optional ( in_place_t  ,
T &&   
)
explicitdelete

◆ ~optional() [3/3]

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

Member Function Documentation

◆ emplace() [1/6]

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

◆ emplace() [2/6]

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

◆ emplace() [3/6]

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

◆ emplace() [4/6]

template<class T >
void std::optional< T & >::emplace ( T &&  )
delete

◆ emplace() [5/6]

template<class T >
void std::optional< T & >::emplace ( T &&  )
delete

◆ emplace() [6/6]

template<class T >
void std::optional< T & >::emplace ( T &&  )
delete

◆ 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/3]

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

◆ operator*() [2/3]

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

◆ operator*() [3/3]

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

◆ operator->() [1/3]

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

◆ operator->() [2/3]

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

◆ operator->() [3/3]

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

◆ operator=() [1/9]

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

◆ operator=() [2/9]

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

◆ operator=() [3/9]

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

◆ operator=() [4/9]

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

◆ operator=() [5/9]

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

◆ operator=() [6/9]

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

◆ operator=() [7/9]

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

◆ operator=() [8/9]

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

◆ operator=() [9/9]

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

◆ 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/3]

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

◆ value() [2/3]

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

◆ value() [3/3]

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

◆ value_or() [1/3]

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

◆ value_or() [2/3]

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

◆ value_or() [3/3]

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

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