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

#include <SuccessOr.h>

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

Public Member Functions

 SuccessOr ()
 
 SuccessOr (T &&error)
 
constexpr operator bool () const
 
 SuccessOr ()
 
 SuccessOr (T &&error)
 
constexpr operator bool () const
 
- Public Member Functions inherited from std::optional< T >
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
 

Additional Inherited Members

- Public Types inherited from std::optional< T >
typedef T value_type
 
typedef T value_type
 
typedef T value_type
 

Constructor & Destructor Documentation

◆ SuccessOr() [1/4]

template<typename T >
WebCore::SuccessOr< T >::SuccessOr ( )
inline

◆ SuccessOr() [2/4]

template<typename T >
WebCore::SuccessOr< T >::SuccessOr ( T &&  error)
inline

◆ SuccessOr() [3/4]

template<typename T >
WebCore::SuccessOr< T >::SuccessOr ( )
inline

◆ SuccessOr() [4/4]

template<typename T >
WebCore::SuccessOr< T >::SuccessOr ( T &&  error)
inline

Member Function Documentation

◆ operator bool() [1/2]

template<typename T >
constexpr WebCore::SuccessOr< T >::operator bool ( ) const
inlineexplicit

◆ operator bool() [2/2]

template<typename T >
constexpr WebCore::SuccessOr< T >::operator bool ( ) const
inlineexplicit

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