|
libzypp 17.38.5
|
#include <zypp-core/ng/pipelines/expected.h>
Public Types | |
| using | value_type = T |
| using | error_type = E |
Public Member Functions | |
| ~expected () | |
| expected (const T &v) | |
| expected (T &&v) | |
| expected (const unexpected< E > &err) noexcept | |
| expected (unexpected< E > &&err) noexcept | |
| expected (const expected &other) | |
| expected (expected &&other) noexcept | |
| template<class G = E> | |
| expected & | operator= (unexpected< G > other) |
| expected & | operator= (expected other) |
| template<class U = std::remove_cv_t<T>> | |
| expected & | operator= (U &&v) |
| void | swap (expected &other) noexcept |
| operator bool () const | |
| bool | is_valid () const |
| T & | get () |
| const T & | get () const |
| T & | unwrap () |
| const T & | unwrap () const |
| T & | operator* () |
| const T & | operator* () const |
| T * | operator-> () |
| const T * | operator-> () const |
| E & | error () |
| const E & | error () const |
| template<typename F> | |
| void | visit (F f) |
Static Public Member Functions | |
| template<typename... ConsParams> | |
| static expected | success (ConsParams &&...params) |
| template<typename... ConsParams> | |
| static expected | error (ConsParams &&...params) |
Protected Member Functions | |
| expected () | |
Protected Attributes | |
| union { | |
| T m_value | |
| E m_error | |
| }; | |
| bool | m_isValid |
Definition at line 56 of file expected.h.
| using zyppng::expected< T, E >::value_type = T |
Definition at line 71 of file expected.h.
| using zyppng::expected< T, E >::error_type = E |
Definition at line 72 of file expected.h.
|
inlineprotected |
Definition at line 65 of file expected.h.
|
inline |
Definition at line 74 of file expected.h.
|
inline |
Definition at line 83 of file expected.h.
|
inline |
Definition at line 88 of file expected.h.
|
inlinenoexcept |
Definition at line 93 of file expected.h.
|
inlinenoexcept |
Definition at line 98 of file expected.h.
|
inline |
Definition at line 103 of file expected.h.
|
inlinenoexcept |
Definition at line 113 of file expected.h.
|
inline |
Definition at line 124 of file expected.h.
|
inline |
Definition at line 130 of file expected.h.
|
inline |
Definition at line 137 of file expected.h.
|
inlinenoexcept |
Definition at line 143 of file expected.h.
|
inlinestatic |
Definition at line 178 of file expected.h.
|
inlinestatic |
Definition at line 189 of file expected.h.
|
inline |
Definition at line 199 of file expected.h.
|
inline |
Definition at line 204 of file expected.h.
|
inline |
Definition at line 215 of file expected.h.
|
inline |
Definition at line 221 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 236 of file expected.h.
|
inline |
Definition at line 252 of file expected.h.
|
inline |
Definition at line 268 of file expected.h.
|
inline |
Definition at line 273 of file expected.h.
|
inline |
Definition at line 278 of file expected.h.
|
inline |
Definition at line 283 of file expected.h.
|
inline |
Definition at line 288 of file expected.h.
|
inline |
Definition at line 294 of file expected.h.
|
inline |
Definition at line 303 of file expected.h.
| T zyppng::expected< T, E >::m_value |
Definition at line 59 of file expected.h.
| E zyppng::expected< T, E >::m_error |
Definition at line 60 of file expected.h.
| union { ... } zyppng::expected< T, E > |
|
protected |
Definition at line 63 of file expected.h.