Ada 2.9.2
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
tl::unexpected< E > Class Template Reference

#include <ada.h>

Public Member Functions

 unexpected ()=delete
constexpr unexpected (const E &e)
constexpr unexpected (E &&e)
template<class... Args, typename std::enable_if< std::is_constructible< E, Args &&... >::value >::type * = nullptr>
constexpr unexpected (Args &&...args)
template<class U, class... Args, typename std::enable_if< std::is_constructible< E, std::initializer_list< U > &, Args &&... >::value >::type * = nullptr>
constexpr unexpected (std::initializer_list< U > l, Args &&...args)
constexpr const E & value () const &
TL_EXPECTED_11_CONSTEXPR E & value () &
TL_EXPECTED_11_CONSTEXPR E && value () &&
constexpr const E && value () const &&

Detailed Description

template<class E>
class tl::unexpected< E >

Definition at line 2022 of file ada.h.

Constructor & Destructor Documentation

◆ unexpected() [1/5]

template<class E>
tl::unexpected< E >::unexpected ( )
delete

◆ unexpected() [2/5]

template<class E>
tl::unexpected< E >::unexpected ( const E & e)
inlineexplicitconstexpr

Definition at line 2027 of file ada.h.

◆ unexpected() [3/5]

template<class E>
tl::unexpected< E >::unexpected ( E && e)
inlineexplicitconstexpr

Definition at line 2029 of file ada.h.

◆ unexpected() [4/5]

template<class E>
template<class... Args, typename std::enable_if< std::is_constructible< E, Args &&... >::value >::type * = nullptr>
tl::unexpected< E >::unexpected ( Args &&... args)
inlineexplicitconstexpr

Definition at line 2033 of file ada.h.

◆ unexpected() [5/5]

template<class E>
template<class U, class... Args, typename std::enable_if< std::is_constructible< E, std::initializer_list< U > &, Args &&... >::value >::type * = nullptr>
tl::unexpected< E >::unexpected ( std::initializer_list< U > l,
Args &&... args )
inlineexplicitconstexpr

Definition at line 2039 of file ada.h.

Member Function Documentation

◆ value() [1/4]

template<class E>
TL_EXPECTED_11_CONSTEXPR E & tl::unexpected< E >::value ( ) &
inline

Definition at line 2043 of file ada.h.

References TL_EXPECTED_11_CONSTEXPR.

◆ value() [2/4]

template<class E>
TL_EXPECTED_11_CONSTEXPR E && tl::unexpected< E >::value ( ) &&
inline

Definition at line 2044 of file ada.h.

References TL_EXPECTED_11_CONSTEXPR.

◆ value() [3/4]

template<class E>
const E & tl::unexpected< E >::value ( ) const &
inlineconstexpr

◆ value() [4/4]

template<class E>
const E && tl::unexpected< E >::value ( ) const &&
inlineconstexpr

Definition at line 2045 of file ada.h.


The documentation for this class was generated from the following file:
  • redhat-linux-build/singleheader/ada.h