|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <expected> | ||
struct unexpect_t{explicit unexpect_t()=default;}; | (1) | (since C++23) |
inlineconstexpr std::unexpect_t unexpect{}; | (2) | (since C++23) |
std::expected object.std::expected to construct an unexpected value.Like other construction tag types,unexpect_t is a trivial, empty class with an explicit default constructor.
constructs theexpected object(public member function)[edit] | |
| in-place construction tag (tag)[edit] |