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

#include <ExceptionOr.h>

Public Member Functions

 ExceptionOr (Exception &&)
 
 ExceptionOr (ReturnType &&)
 
template<typename OtherType >
 ExceptionOr (const OtherType &, typename std::enable_if< std::is_scalar< OtherType >::value &&std::is_convertible< OtherType, ReturnType >::value >::type *=nullptr)
 
bool hasException () const
 
const Exceptionexception () const
 
Exception && releaseException ()
 
ReturnType && releaseReturnValue ()
 
 ExceptionOr (Exception &&)
 
 ExceptionOr (ReturnType &&)
 
template<typename OtherType >
 ExceptionOr (const OtherType &, typename std::enable_if< std::is_scalar< OtherType >::value &&std::is_convertible< OtherType, ReturnType >::value >::type *=nullptr)
 
bool hasException () const
 
const Exceptionexception () const
 
Exception && releaseException ()
 
ReturnType && releaseReturnValue ()
 
template<typename ReturnReferenceType>
 ExceptionOr (ReturnReferenceType &returnValue)
 

Constructor & Destructor Documentation

◆ ExceptionOr() [1/7]

template<typename ReturnReferenceType >
WebCore::ExceptionOr< ReturnReferenceType >::ExceptionOr ( Exception &&  exception)
inline

◆ ExceptionOr() [2/7]

template<typename ReturnType>
WebCore::ExceptionOr< ReturnType >::ExceptionOr ( ReturnType &&  returnValue)
inline

◆ ExceptionOr() [3/7]

template<typename ReturnType>
template<typename OtherType >
WebCore::ExceptionOr< ReturnType >::ExceptionOr ( const OtherType &  returnValue,
typename std::enable_if< std::is_scalar< OtherType >::value &&std::is_convertible< OtherType, ReturnType >::value >::type = nullptr 
)
inline

◆ ExceptionOr() [4/7]

template<typename ReturnType>
WebCore::ExceptionOr< ReturnType >::ExceptionOr ( Exception &&  )

◆ ExceptionOr() [5/7]

template<typename ReturnType>
WebCore::ExceptionOr< ReturnType >::ExceptionOr ( ReturnType &&  )

◆ ExceptionOr() [6/7]

template<typename ReturnType>
template<typename OtherType >
WebCore::ExceptionOr< ReturnType >::ExceptionOr ( const OtherType &  ,
typename std::enable_if< std::is_scalar< OtherType >::value &&std::is_convertible< OtherType, ReturnType >::value >::type = nullptr 
)

◆ ExceptionOr() [7/7]

template<typename ReturnType>
template<typename ReturnReferenceType>
WebCore::ExceptionOr< ReturnReferenceType >::ExceptionOr ( ReturnReferenceType &  returnValue)
inline

Member Function Documentation

◆ exception() [1/2]

template<typename ReturnReferenceType >
const Exception & WebCore::ExceptionOr< ReturnReferenceType >::exception ( ) const
inline

◆ exception() [2/2]

template<typename ReturnType>
const Exception& WebCore::ExceptionOr< ReturnType >::exception ( ) const

◆ hasException() [1/2]

template<typename ReturnReferenceType >
bool WebCore::ExceptionOr< ReturnReferenceType >::hasException ( ) const
inline

◆ hasException() [2/2]

template<typename ReturnType>
bool WebCore::ExceptionOr< ReturnType >::hasException ( ) const

◆ releaseException() [1/2]

template<typename ReturnType>
Exception&& WebCore::ExceptionOr< ReturnType >::releaseException ( )

◆ releaseException() [2/2]

template<typename ReturnReferenceType >
Exception && WebCore::ExceptionOr< ReturnReferenceType >::releaseException ( )
inline

◆ releaseReturnValue() [1/2]

template<typename ReturnReferenceType >
ReturnReferenceType & WebCore::ExceptionOr< ReturnReferenceType >::releaseReturnValue ( )
inline

◆ releaseReturnValue() [2/2]

template<typename ReturnType>
ReturnType&& WebCore::ExceptionOr< ReturnType >::releaseReturnValue ( )

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