Reference

class
<system_error>

std::error_code

class error_code;
Error code
Objects of this type hold an error code value associated with a category.

The operating system and other low-level applications and libraries generate numerical error codes to represent possible results. These numerical values may carry essential information for a specific platform, but be non-portable from one platform to another.

Objects of this class associate such numerical codes to error categories , so that they can be interpreted when needed as more abstract (and portable) error conditions .

Member functions

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

Non-member function overloads

relational operators (error_code)
Relational operators (function)
operator<<
Insert into ostream (function)

Non-member class specializations

hash<error_code>
Hash for error_code (class template specialization)

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