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/../error/error_code/../error_condition.html below:

std::error_condition - cppreference.com

class error_condition;

(since C++11)

std::error_condition holds a platform-independent value identifying an error condition. Like std::error_code, it is uniquely identified by an integer value and a std::error_category, but unlike std::error_code, the value is not platform-dependent.

A typical implementation holds one integer data member (the value) and a pointer to an std::error_category.

[edit] Member functions constructs an error_condition
(public member function) [edit] replaces the contents
(public member function) [edit] replaces the contents
(public member function) [edit] sets the error_condition to value ​0​ in generic_category
(public member function) [edit] obtains the value of the error_condition
(public member function) [edit] obtains the error_category for this error_condition
(public member function) [edit] obtains the explanatory string
(public member function) [edit] checks if the value is non-zero
(public member function) [edit] [edit] Non-member functions [edit] Helper classes [edit] Notes

The comparison between a std::error_code and a std::error_condition is defined by their error categories. Notably, an error condition of std::generic_category may compare equal to an error code of a specific category (e.g. std::system_category), if they represent the same kind of error.

A std::errc value can be compared to an error code via implicit conversion to std::error_condition.

[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