std::unexpect_t, std::unexpect
Min standard notice:
Header: <expected>
- A tag type for in-place construction of an unexpected value in an std::expected object.
# Declarations
struct unexpect_t { explicit unexpect_t() = default; };
(since C++23)
inline constexpr std::unexpect_t unexpect{};
(since C++23)
# Notes
Like other construction tag types, unexpect_t is a trivial, empty class with an explicit default constructor.