Definition at line 104 of file expected.hpp.
Public Member Functions | |
| expected (const unexpected< E > &error) | |
| expected (unexpected< E > &&error) | |
| template<class G> requires std::is_convertible_v<G, E> | |
| expected (const unexpected< G > &error) | |
| template<class G> requires std::is_convertible_v<G, E> | |
| expected (unexpected< G > &&error) | |
| bool | has_value () const noexcept |
| operator bool () const noexcept | |
| void | value () const |
| E & | error () USERVER_IMPL_LIFETIME_BOUND |
| const E & | error () const USERVER_IMPL_LIFETIME_BOUND |
| expected (const void &success) | |
| expected (void &&success) | |
| expected (const unexpected< E > &error) | |
| expected (unexpected< E > &&error) | |
| expected (const unexpected< G > &error) | |
| expected (unexpected< G > &&error) | |
| bool | has_value () const noexcept |
| Check whether *this contains an expected value. | |
| operator bool () const noexcept | |
| Check whether *this contains an expected value. | |
| void & | value () &USERVER_IMPL_LIFETIME_BOUND |
| Return reference to the value or throws bad_expected_access if it's not available. | |
| void && | value () &&USERVER_IMPL_LIFETIME_BOUND |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| const void & | value () const &USERVER_IMPL_LIFETIME_BOUND |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| E & | error () USERVER_IMPL_LIFETIME_BOUND |
| Return reference to the error value or throws bad_expected_access if it's not available. | |
| const E & | error () const USERVER_IMPL_LIFETIME_BOUND |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
|
constexprnoexcept |
Definition at line 252 of file expected.hpp.
| utils::expected< void, E >::expected | ( | const unexpected< E > & | error | ) |
Definition at line 255 of file expected.hpp.
| utils::expected< void, E >::expected | ( | unexpected< E > && | error | ) |
Definition at line 260 of file expected.hpp.
| utils::expected< void, E >::expected | ( | const unexpected< G > & | error | ) |
Definition at line 267 of file expected.hpp.
| utils::expected< void, E >::expected | ( | unexpected< G > && | error | ) |
Definition at line 274 of file expected.hpp.
|
constexpr |
Definition at line 60 of file expected.hpp.
| utils::expected< void, E >::expected | ( | const void & | success | ) |
Definition at line 61 of file expected.hpp.
| utils::expected< void, E >::expected | ( | void && | success | ) |
Definition at line 62 of file expected.hpp.
| utils::expected< void, E >::expected | ( | const unexpected< E > & | error | ) |
Definition at line 63 of file expected.hpp.
| utils::expected< void, E >::expected | ( | unexpected< E > && | error | ) |
Definition at line 64 of file expected.hpp.
| utils::expected< void, E >::expected | ( | const unexpected< G > & | error | ) |
Definition at line 68 of file expected.hpp.
| utils::expected< void, E >::expected | ( | unexpected< G > && | error | ) |
Definition at line 72 of file expected.hpp.
| const E & utils::expected< void, E >::error | ( | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 97 of file expected.hpp.
| const E & utils::expected< void, E >::error | ( | ) | const |
Definition at line 305 of file expected.hpp.
| E & utils::expected< void, E >::error | ( | ) |
Return reference to the error value or throws bad_expected_access if it's not available.
| utils::bad_expected_access | if success value is not available |
Definition at line 94 of file expected.hpp.
| E & utils::expected< void, E >::error | ( | ) |
Definition at line 296 of file expected.hpp.
|
noexcept |
Check whether *this contains an expected value.
Definition at line 75 of file expected.hpp.
|
noexcept |
Definition at line 279 of file expected.hpp.
|
explicitnoexcept |
Check whether *this contains an expected value.
Definition at line 78 of file expected.hpp.
|
explicitnoexcept |
Definition at line 284 of file expected.hpp.
| void && utils::expected< void, E >::value | ( | ) | && |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 86 of file expected.hpp.
| void & utils::expected< void, E >::value | ( | ) | & |
Return reference to the value or throws bad_expected_access if it's not available.
| utils::bad_expected_access | if *this contain an unexpected value |
Definition at line 83 of file expected.hpp.
| void utils::expected< void, E >::value | ( | ) | const |
Definition at line 289 of file expected.hpp.
| const void & utils::expected< void, E >::value | ( | ) | const & |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 89 of file expected.hpp.