webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Typedefs | Enumerations | Functions
WTF::ExpectedDetail Namespace Reference

Classes

struct  Base
 
struct  Base< void, E >
 
struct  ConstexprBase
 
struct  ConstexprBase< void, E >
 
union  ConstexprStorage
 
union  ConstexprStorage< void, E >
 
union  Storage
 
union  Storage< void, E >
 

Typedefs

template<class T , class E >
using BaseSelect = typename std::conditional<((std::is_void< T >::value||std::is_trivially_destructible< T >::value) &&std::is_trivially_destructible< E >::value), ConstexprBase< typename std::remove_const< T >::type, typename std::remove_const< E >::type >, Base< typename std::remove_const< T >::type, typename std::remove_const< E >::type > >::type
 

Enumerations

enum  ValueTagType
 
enum  ErrorTagType
 
enum  ValueTagType
 
enum  ErrorTagType
 
enum  ValueTagType
 
enum  ErrorTagType
 

Functions

NO_RETURN_DUE_TO_CRASH void Throw ()
 
template<class T , std::enable_if_t< std::is_trivially_destructible< T >::value > * = nullptr>
void destroy (T &)
 

Typedef Documentation

◆ BaseSelect

template<class T , class E >
using WTF::ExpectedDetail::BaseSelect = typedef typename std::conditional< ((std::is_void<T>::value || std::is_trivially_destructible<T>::value) && std::is_trivially_destructible<E>::value), ConstexprBase<typename std::remove_const<T>::type, typename std::remove_const<E>::type>, Base<typename std::remove_const<T>::type, typename std::remove_const<E>::type> >::type

Enumeration Type Documentation

◆ ErrorTagType [1/3]

◆ ErrorTagType [2/3]

◆ ErrorTagType [3/3]

◆ ValueTagType [1/3]

◆ ValueTagType [2/3]

◆ ValueTagType [3/3]

Function Documentation

◆ destroy()

template<class T , std::enable_if_t< std::is_trivially_destructible< T >::value > * = nullptr>
void WTF::ExpectedDetail::destroy ( T t)

◆ Throw()

NO_RETURN_DUE_TO_CRASH void WTF::ExpectedDetail::Throw ( )
inline