|
|
constexprconst E& error()const&noexcept; | (1) | (since C++23) |
constexpr E& error()&noexcept; | (2) | (since C++23) |
constexprconst E&& error()const&&noexcept; | (3) | (since C++23) |
constexpr E&& error()&&noexcept; | (4) | (since C++23) |
Accesses the unexpected value contained in*this.
Ifhas_value() istrue, the behavior is undefined. | (until C++26) |
Ifhas_value() istrue:
| (since C++26) |
unex
unex
)This section is incomplete Reason: no example |
returns the unexpected value if present, another value otherwise (public member function)[edit] | |
accesses the expected value (public member function)[edit] | |
returns the expected value (public member function)[edit] | |
checks whether the object contains an expected value (public member function)[edit] |