Definition at line 100 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 () |
| const E & | error () const |
| 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 () & |
| Return reference to the value or throws bad_expected_access if it's not available. | |
| void && | value () && |
| 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 & |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| E & | error () |
| Return reference to the error value or throws bad_expected_access if it's not available. | |
| const 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. | |
|
constexprnoexcept |
Definition at line 244 of file expected.hpp.
| utils::expected< void, E >::expected | ( | const unexpected< E > & | error | ) |
Definition at line 247 of file expected.hpp.
| utils::expected< void, E >::expected | ( | unexpected< E > && | error | ) |
Definition at line 252 of file expected.hpp.
| utils::expected< void, E >::expected | ( | const unexpected< G > & | error | ) |
Definition at line 258 of file expected.hpp.
| utils::expected< void, E >::expected | ( | unexpected< G > && | error | ) |
Definition at line 264 of file expected.hpp.
|
constexpr |
Definition at line 58 of file expected.hpp.
| utils::expected< void, E >::expected | ( | const void & | success | ) |
Definition at line 59 of file expected.hpp.
| utils::expected< void, E >::expected | ( | void && | success | ) |
Definition at line 60 of file expected.hpp.
| utils::expected< void, E >::expected | ( | const unexpected< E > & | error | ) |
Definition at line 61 of file expected.hpp.
| utils::expected< void, E >::expected | ( | unexpected< E > && | error | ) |
Definition at line 62 of file expected.hpp.
| utils::expected< void, E >::expected | ( | const unexpected< G > & | error | ) |
Definition at line 65 of file expected.hpp.
| utils::expected< void, E >::expected | ( | unexpected< G > && | error | ) |
Definition at line 68 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 90 of file expected.hpp.
| E & utils::expected< void, E >::error | ( | ) |
Definition at line 286 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 93 of file expected.hpp.
| const E & utils::expected< void, E >::error | ( | ) | const |
Definition at line 295 of file expected.hpp.
|
noexcept |
Check whether *this contains an expected value.
Definition at line 71 of file expected.hpp.
|
noexcept |
Definition at line 269 of file expected.hpp.
|
explicitnoexcept |
Check whether *this contains an expected value.
Definition at line 74 of file expected.hpp.
|
explicitnoexcept |
Definition at line 274 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 79 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 82 of file expected.hpp.
| void utils::expected< void, E >::value | ( | ) | const |
Definition at line 279 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 85 of file expected.hpp.