Definition at line 102 of file expected.hpp.
Public Member Functions | |
| expected (const unexpected< E > &error) | |
| expected (unexpected< E > &&error) | |
| template<class G, typename = std::enable_if_t<std::is_convertible_v<G, E>>> | |
| expected (const unexpected< G > &error) | |
| template<class G, typename = std::enable_if_t<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 246 of file expected.hpp.
| utils::expected< void, E >::expected | ( | const unexpected< E > & | error | ) |
Definition at line 249 of file expected.hpp.
| utils::expected< void, E >::expected | ( | unexpected< E > && | error | ) |
Definition at line 254 of file expected.hpp.
| utils::expected< void, E >::expected | ( | const unexpected< G > & | error | ) |
Definition at line 260 of file expected.hpp.
| utils::expected< void, E >::expected | ( | unexpected< G > && | error | ) |
Definition at line 266 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 67 of file expected.hpp.
| utils::expected< void, E >::expected | ( | unexpected< G > && | error | ) |
Definition at line 70 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 95 of file expected.hpp.
| const E & utils::expected< void, E >::error | ( | ) | const |
Definition at line 297 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 92 of file expected.hpp.
| E & utils::expected< void, E >::error | ( | ) |
Definition at line 288 of file expected.hpp.
|
noexcept |
Check whether *this contains an expected value.
Definition at line 73 of file expected.hpp.
|
noexcept |
Definition at line 271 of file expected.hpp.
|
explicitnoexcept |
Check whether *this contains an expected value.
Definition at line 76 of file expected.hpp.
|
explicitnoexcept |
Definition at line 276 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 84 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 81 of file expected.hpp.
| void utils::expected< void, E >::value | ( | ) | const |
Definition at line 281 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 87 of file expected.hpp.