| libzypp 17.37.10
    | 
#include <zypp-core/zyppng/pipelines/expected.h>
| Public Types | |
| using | value_type = T | 
| using | error_type = E | 
| 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 | 
| 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 27 of file expected.h.
| using zyppng::expected< T, E >::value_type = T | 
Definition at line 42 of file expected.h.
| using zyppng::expected< T, E >::error_type = E | 
Definition at line 43 of file expected.h.
| 
 | inlineprotected | 
Definition at line 36 of file expected.h.
| 
 | inline | 
Definition at line 45 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 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 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 225 of file expected.h.
| 
 | inline | 
Definition at line 231 of file expected.h.
| 
 | inline | 
Definition at line 240 of file expected.h.
| T zyppng::expected< T, E >::m_value | 
Definition at line 30 of file expected.h.
| E zyppng::expected< T, E >::m_error | 
Definition at line 31 of file expected.h.
| union { ... } zyppng::expected< T, E > | 
| 
 | protected | 
Definition at line 34 of file expected.h.