std::error_code - cppreference.com (original) (raw)
std::error_code represents a platform-dependent error code value. Each std::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 type std::error_category, which corresponds to the said interface. The error code values are not required to be unique across different error categories.
Contents
[edit] Member functions
| (constructor) | constructs an error code (public member function) [edit] |
|---|---|
| operator= | assigns another error code (public member function) [edit] |
| assign | assigns another error code (public member function) [edit] |
| Modifiers | |
| clear | sets the error_code to value 0 in system_category (public member function) [edit] |
| Observers | |
| value | obtains the value of the error_code (public member function) [edit] |
| category | obtains the error_category for this error_code (public member function) [edit] |
| default_error_condition | obtains the error_condition for this error_code (public member function) [edit] |
| message | obtains the explanatory string for this error_code (public member function) [edit] |
| operator bool | checks if the value is non-zero (public member function) [edit] |