chsvlib
chsv helper source code

◆ equivalent() [1/2]

virtual bool equivalent ( const std::error_code &  code,
int  valcond 
) const
virtualnoexcept

Checks if the specified std::error_code object corresponds to the specified error condition integral code. The error condition is to be defined by the chsvlib_general_category error category.

Parameters
codeis an object of type error_code which is checked for correspondence to the specified error condition. The code is supposed to be based on the values of the chsvlib_error enumeration, which are defined in the chsvlib_general_category category.
valcondis an integral code value specifying the error condition to be checked for correspondence to the error code object.
Returns
The function returns true if the error code is equivalent to the error condition object, or false otherwise.