Bitcoin ABC 0.30.7
P2P Digital Currency
|
#include <result.h>
Public Member Functions | |
Result () | |
Result (T obj) | |
Result (Error error) | |
bool | has_value () const noexcept |
std::optional methods, so functions returning optional<T> can change to return Result<T> with minimal changes to existing code, and vice versa. More... | |
const T & | value () const LIFETIMEBOUND |
T & | value () LIFETIMEBOUND |
template<class U > | |
T | value_or (U &&default_value) const & |
template<class U > | |
T | value_or (U &&default_value) && |
operator bool () const noexcept | |
const T * | operator-> () const LIFETIMEBOUND |
const T & | operator* () const LIFETIMEBOUND |
T * | operator-> () LIFETIMEBOUND |
T & | operator* () LIFETIMEBOUND |
Private Types | |
using | T = std::conditional_t< std::is_same_v< M, void >, std::monostate, M > |
Private Attributes | |
std::variant< bilingual_str, T > | m_variant |
Friends | |
template<typename FT > | |
bilingual_str | ErrorString (const Result< FT > &result) |
|
private |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
private |