A RetroSearch Logo

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

Search Query:

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

std::expected<T,E>::error - cppreference.com

constexpr const E& error() const& noexcept;

(1) (since C++23)

constexpr E& error() & noexcept;

(2) (since C++23)

constexpr const E&& error() const&& noexcept;

(3) (since C++23)

constexpr E&& error() && noexcept;

(4) (since C++23)

Accesses the unexpected value contained in *this.

If has_value() is true, the behavior is undefined.

(until C++26)

If has_value() is true:

(since C++26) [edit] Return value [edit] Example [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