|
ThreadSchedule 1.0.0
Modern C++ thread management library
|
Exception thrown by expected::value() when the object is in the error state.
More...
#include <expected.hpp>
Public Member Functions | |
| constexpr | unexpected (E const &e) |
| constexpr | unexpected (E &&e) |
| constexpr auto | error () const &noexcept -> E const & |
| constexpr auto | error () &noexcept -> E & |
| constexpr auto | error () &&noexcept -> E && |
Exception thrown by expected::value() when the object is in the error state.
The base specialization for void carries no error payload and simply reports "bad expected access". The derived template bad_expected_access<E> additionally stores a copy of the error value.
| E | Error type. The void specialization serves as the common base. |
Wrapper that holds an error value for constructing an expected in the error state.
Use unexpected to explicitly construct or assign an error into an expected object:
| E | The error type. |
Definition at line 161 of file expected.hpp.
|
inlineexplicitconstexpr |
Definition at line 164 of file expected.hpp.
|
inlineexplicitconstexpr |
Definition at line 167 of file expected.hpp.
|
inlineconstexprnoexcept |
Definition at line 178 of file expected.hpp.
|
inlineconstexprnoexcept |
Definition at line 174 of file expected.hpp.
|
inlinenodiscardconstexprnoexcept |
Definition at line 170 of file expected.hpp.