|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
error_category::equivalent | ||||
(until C++20)(until C++20)(C++20) |
virtualbool equivalent(int code, conststd::error_condition& condition)constnoexcept; | (1) | (since C++11) |
virtualbool equivalent(conststd::error_code& code, int condition)constnoexcept; | (2) | (since C++11) |
Checks whether error code is equivalent to an error condition for the error category represented by*this.
| code | - | specifies the error code to compare |
| condition | - | specifies the error condition to compare |
true if the error code is equivalent to the given error condition for the error category represented by*this,false otherwise.