|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Modifiers | ||||
| Observers | ||||
| Non-member functions | ||||
(until C++20)(until C++20)(C++20) | ||||
| Helper classes | ||||
Defined in header <system_error> | ||
class error_code; | (since C++11) | |
std::error_code represents a platform-dependent error code value. Eachstd::error_code object holds an error code value originating from the operating system or some low-level interface and a pointer to an object of typestd::error_category, which corresponds to the said interface. The error code values are not required to be unique across different error categories.
Contents |
| constructs an error code (public member function)[edit] | |
| assigns another error code (public member function)[edit] | |
| assigns another error code (public member function)[edit] | |
Modifiers | |
sets theerror_code to value0 insystem_category(public member function)[edit] | |
Observers | |
obtains the value of theerror_code(public member function)[edit] | |
| obtains the error_category for this error_code (public member function)[edit] | |
obtains theerror_condition for thiserror_code(public member function)[edit] | |
obtains the explanatory string for thiserror_code(public member function)[edit] | |
| checks if the value is non-zero (public member function)[edit] | |
(removed in C++20)(removed in C++20)(C++20) | compares twoerror_codes(function)[edit] |
| outputs the value and the category name to an output stream (function)[edit] |
(C++11) | identifies a class as anerror_code enumeration(class template)[edit] |
(C++11) | hash support forstd::error_code (class template specialization)[edit] |
(C++11) | holds a portable error code (class)[edit] |
(C++11) | base class for error categories (class)[edit] |
(C++11) | creates error code value forerrc enume(function)[edit] |