Bitcoin Core  31.0.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
util::Unexpected< E > Class Template Reference

The util::Unexpected class represents an unexpected value stored in util::Expected. More...

#include <expected.h>

Public Member Functions

constexpr Unexpected (E e)
 
constexpr const Eerror () const &noexcept LIFETIMEBOUND
 
constexpr Eerror () &noexcept LIFETIMEBOUND
 
constexpr E && error () &&noexcept LIFETIMEBOUND
 

Private Attributes

E m_error
 

Detailed Description

template<class E>
class util::Unexpected< E >

The util::Unexpected class represents an unexpected value stored in util::Expected.

Definition at line 21 of file expected.h.

Constructor & Destructor Documentation

◆ Unexpected()

template<class E>
constexpr util::Unexpected< E >::Unexpected ( E  e)
inlineexplicit

Definition at line 24 of file expected.h.

Member Function Documentation

◆ error() [1/3]

template<class E>
constexpr const E& util::Unexpected< E >::error ( ) const &
inlinenoexcept

Definition at line 26 of file expected.h.

Here is the caller graph for this function:

◆ error() [2/3]

template<class E>
constexpr E& util::Unexpected< E >::error ( ) &
inlinenoexcept

Definition at line 27 of file expected.h.

◆ error() [3/3]

template<class E>
constexpr E&& util::Unexpected< E >::error ( ) &&
inlinenoexcept

Definition at line 28 of file expected.h.

Member Data Documentation

◆ m_error

template<class E>
E util::Unexpected< E >::m_error
private

Definition at line 31 of file expected.h.


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