libzypp 17.36.7
|
#include <zypp-core/zyppng/pipelines/expected.h>
Public Types | |
using | value_type |
using | error_type |
Public Member Functions | |
~expected () | |
expected (const expected &other) | |
expected (expected &&other) noexcept | |
expected & | operator= (expected other) |
void | swap (expected &other) noexcept |
operator bool () const | |
bool | is_valid () const |
E & | error () |
const E & | error () const |
void | unwrap () const |
expected (const expected &other) | |
expected (expected &&other) noexcept | |
~expected () | |
expected & | operator= (expected other) |
void | swap (expected &other) noexcept |
E & | error () |
const E & | error () const |
operator bool () const | |
bool | is_valid () const |
void & | get () |
const void & | get () const |
void & | unwrap () |
const void & | unwrap () const |
void & | operator* () |
const void & | operator* () const |
void * | operator-> () |
const void * | operator-> () const |
void | visit (F f) |
Static Public Member Functions | |
static expected | success () |
template<typename... ConsParams> | |
static expected | error (ConsParams &&...params) |
static expected | success (ConsParams &&...params) |
static expected | error (ConsParams &&...params) |
Public Attributes | |
void | m_value |
E | m_error |
Protected Member Functions | |
expected () | |
Protected Attributes | ||
union { | ||
T m_value | ||
E m_error | ||
}; | ||
bool | m_isValid | |
Private Member Functions | |
expected () | |
Private Attributes | |
union zyppng::expected< void, E >:: { ... } | |
bool | m_isValid |
Definition at line 251 of file expected.h.
using zyppng::expected< void, E >::value_type |
Definition at line 42 of file expected.h.
using zyppng::expected< void, E >::error_type |
Definition at line 43 of file expected.h.
|
inlineprivate |
Definition at line 260 of file expected.h.
|
inline |
Definition at line 263 of file expected.h.
|
inline |
Definition at line 272 of file expected.h.
|
inlinenoexcept |
Definition at line 282 of file expected.h.
|
inlineprotected |
Definition at line 36 of file expected.h.
|
inline |
Definition at line 54 of file expected.h.
|
inlinenoexcept |
Definition at line 64 of file expected.h.
|
inline |
Definition at line 45 of file expected.h.
|
inline |
Definition at line 292 of file expected.h.
|
inlinenoexcept |
Definition at line 298 of file expected.h.
|
inlinestatic |
Definition at line 330 of file expected.h.
|
inlinestatic |
Definition at line 341 of file expected.h.
|
inline |
Definition at line 351 of file expected.h.
|
inline |
Definition at line 356 of file expected.h.
|
inline |
Definition at line 367 of file expected.h.
|
inline |
Definition at line 373 of file expected.h.
|
inline |
Definition at line 379 of file expected.h.
|
inline |
Definition at line 74 of file expected.h.
|
inlinenoexcept |
Definition at line 80 of file expected.h.
|
inlinestatic |
Definition at line 115 of file expected.h.
|
inlinestatic |
Definition at line 126 of file expected.h.
|
inline |
Definition at line 225 of file expected.h.
|
inline |
Definition at line 231 of file expected.h.
|
inline |
Definition at line 136 of file expected.h.
|
inline |
Definition at line 141 of file expected.h.
|
inline |
Definition at line 152 of file expected.h.
|
inline |
Definition at line 158 of file expected.h.
|
inline |
Unwraps the value if the expected is valid, otherwise throws an exception. If the Error type is std::exception_ptr the exception will be rethrown, otherwise the Error object is directly thrown as if calling:
Definition at line 173 of file expected.h.
|
inline |
Definition at line 189 of file expected.h.
|
inline |
Definition at line 205 of file expected.h.
|
inline |
Definition at line 210 of file expected.h.
|
inline |
Definition at line 215 of file expected.h.
|
inline |
Definition at line 220 of file expected.h.
|
inline |
Definition at line 240 of file expected.h.
void* zyppng::expected< void, E >::m_value |
Definition at line 254 of file expected.h.
E zyppng::expected< void, E >::m_error |
Definition at line 255 of file expected.h.
union zyppng::expected< void, E > { ... } zyppng::expected< void, E > |
|
private |
Definition at line 258 of file expected.h.
void zyppng::expected< void, E >::m_value |
Definition at line 30 of file expected.h.
E zyppng::expected< void, E >::m_error |
Definition at line 31 of file expected.h.
union { ... } zyppng::expected< void, E > |
|
protected |
Definition at line 34 of file expected.h.