A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../algorithm/../utility/expected/unexpect_t.html below:

std::unexpect_t, std::unexpect - cppreference.com

struct unexpect_t { explicit unexpect_t() = default; };

(1) (since C++23)

inline constexpr std::unexpect_t unexpect{};

(2) (since C++23)

1) A tag type for in-place construction of an unexpected value in an std::expected object.

2) A constant of type const std::unexpect_t which is usually directly passed to a constructor of std::expected to construct an unexpected value.

[edit] Notes

Like other construction tag types, unexpect_t is a trivial, empty class with an explicit default constructor.

[edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4