Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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
void value_or (U &&default_value) const &
constexpr void swap (Expected &other) noexcept
constexpr void * operator-> () 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>
util::Expected< void, E >::Expected ( )
inlineconstexpr

Definition at line 108 of file expected.h.

◆ Expected() [2/2]

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

Definition at line 110 of file expected.h.

Here is the call graph for this function:

Member Function Documentation

◆ error() [1/3]

template<class E>
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>
E & util::Expected< void, E >::error ( ) &
inlineconstexprnoexcept

Definition at line 126 of file expected.h.

◆ error() [3/3]

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

Definition at line 125 of file expected.h.

Here is the caller graph for this function:

◆ has_value()

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

Definition at line 114 of file expected.h.

◆ operator bool()

template<class E>
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>
void util::Expected< void, E >::operator* ( ) const
inlineconstexprnoexcept

Definition at line 117 of file expected.h.

Here is the call graph for this function:

◆ operator->()

void * util::Expected< void, E >::operator-> ( )
inlineconstexprnoexcept

Definition at line 97 of file expected.h.

◆ swap()

void util::Expected< void, E >::swap ( Expected< void, E > & other)
inlineconstexprnoexcept

Definition at line 91 of file expected.h.

◆ value()

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

Definition at line 118 of file expected.h.

Here is the call graph for this function:

◆ value_or()

void util::Expected< void, E >::value_or ( U && default_value) const &
inline

Definition at line 77 of file expected.h.

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: