Reference

class
<system_error>

std::error_condition

class error_condition;
Error condition
Objects of this type hold a condition value associated with a category.

Objects of this type describe errors in a generic way so that they may be portable across different systems. This is in contrast with error_code objects, that may contain system-specific information.

Because error_condition objects can be compared with error_code objects directly by using relational operators , error_condition objects are generally used to check whether a particular error_code obtained from the system matches a specific error condition no matter the system.

The categories associated with the error_condition and the error_code define the equivalences between them.

Member functions

(constructor)
Construct error_condition (public member function)
assign
Assign error condition (public member function)
operator=
Assign error condition (public member function)
clear
Clear error condition (public member function)
value
Error condition value (public member function)
category
Get category (public member function)
message
Get message (public member function)
operator bool
Convert to bool (public member function)

Non-member function overloads

relational operators (error_condition)
Relational operators (function)

AltStyle によって変換されたページ (->オリジナル) /