Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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>
util::Unexpected< E >::Unexpected ( E e)
inlineexplicitconstexpr

Definition at line 24 of file expected.h.

Member Function Documentation

◆ error() [1/3]

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

Definition at line 28 of file expected.h.

◆ error() [2/3]

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

Definition at line 27 of file expected.h.

◆ error() [3/3]

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

Definition at line 26 of file expected.h.

Here is the caller graph for this function:

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: