userver: utils::unexpected< E > Class Template Reference
Loading...
Searching...
No Matches
utils::unexpected< E > Class Template Reference

Detailed Description

template<class E>
class utils::unexpected< E >

Definition at line 28 of file expected.hpp.

Public Member Functions

 unexpected (const E &error)
 
 unexpected (E &&error)
 
template<class... Args>
 unexpected (Args &&... args)
 
template<class U , class... Args>
 unexpected (std::initializer_list< U > il, Args &&... args)
 
Eerror () noexcept
 
const Eerror () const noexcept
 

Constructor & Destructor Documentation

◆ unexpected() [1/4]

template<class E >
utils::unexpected< E >::unexpected ( const E & error)

Definition at line 93 of file expected.hpp.

◆ unexpected() [2/4]

template<class E >
utils::unexpected< E >::unexpected ( E && error)

Definition at line 96 of file expected.hpp.

◆ unexpected() [3/4]

template<class E >
template<class... Args>
utils::unexpected< E >::unexpected ( Args &&... args)

Definition at line 100 of file expected.hpp.

◆ unexpected() [4/4]

template<class E >
template<class U , class... Args>
utils::unexpected< E >::unexpected ( std::initializer_list< U > il,
Args &&... args )

Definition at line 105 of file expected.hpp.

Member Function Documentation

◆ error() [1/2]

template<class E >
const E & utils::unexpected< E >::error ( ) const
noexcept

Definition at line 114 of file expected.hpp.

◆ error() [2/2]

template<class E >
E & utils::unexpected< E >::error ( )
noexcept

Definition at line 109 of file expected.hpp.


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