Bitcoin Core 30.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
util::Expected< void, E > Class Template Reference

#include <expected.h>

Public Member Functions

constexpr Expected ()
 
template<class Err >
constexpr Expected (Unexpected< Err > u)
 
constexpr bool has_value () const noexcept
 
constexpr operator bool () const noexcept
 
constexpr void operator* () const noexcept
 
constexpr void value () const
 
constexpr const Eerror () const &noexcept LIFETIMEBOUND
 
constexpr Eerror () &noexcept LIFETIMEBOUND
 
constexpr E && error () &&noexcept LIFETIMEBOUND
 

Private Attributes

std::variant< std::monostate, Em_data
 

Detailed Description

template<class E>
class util::Expected< void, E >

Definition at line 102 of file expected.h.

Constructor & Destructor Documentation

◆ Expected() [1/2]

template<class E >
constexpr util::Expected< void, E >::Expected ( )
inlineconstexpr

Definition at line 108 of file expected.h.

◆ Expected() [2/2]

template<class E >
template<class Err >
constexpr util::Expected< void, E >::Expected ( Unexpected< Err >  u)
inlineconstexpr

Definition at line 110 of file expected.h.

Member Function Documentation

◆ error() [1/3]

template<class E >
constexpr E && util::Expected< void, E >::error ( ) &&
inlineconstexprnoexcept

Definition at line 127 of file expected.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ error() [2/3]

template<class E >
constexpr E & util::Expected< void, E >::error ( ) &
inlineconstexprnoexcept

Definition at line 126 of file expected.h.

◆ error() [3/3]

template<class E >
constexpr const E & util::Expected< void, E >::error ( ) const &
inlineconstexprnoexcept

Definition at line 125 of file expected.h.

◆ has_value()

template<class E >
constexpr bool util::Expected< void, E >::has_value ( ) const
inlineconstexprnoexcept

Definition at line 114 of file expected.h.

◆ operator bool()

template<class E >
constexpr util::Expected< void, E >::operator bool ( ) const
inlineexplicitconstexprnoexcept

Definition at line 115 of file expected.h.

Here is the call graph for this function:

◆ operator*()

template<class E >
constexpr void util::Expected< void, E >::operator* ( ) const
inlineconstexprnoexcept

Definition at line 117 of file expected.h.

Here is the call graph for this function:

◆ value()

template<class E >
constexpr void util::Expected< void, E >::value ( ) const
inlineconstexpr

Definition at line 118 of file expected.h.

Here is the call graph for this function:

Member Data Documentation

◆ m_data

template<class E >
std::variant<std::monostate, E> util::Expected< void, E >::m_data
private

Definition at line 105 of file expected.h.


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