chsvlib
chsv helper source code

◆ equivalent() [2/2]

virtual bool equivalent ( int  valcode,
const std::error_condition &  cond 
) const
virtualnoexcept

Checks if the specified integral value, which is supposed to be a chsvlib error code, which is cast to the int type, corresponds to the specified error condition.

Parameters
valcodeis an integral error code that is supposed to be equal to the values of the chsvlib_error enumeration (which are equal to chsvlib error codes of the Error handling). Otherwise, the error code would be considered unknown.
condis an object of type error_condition to be matched with the specified integral error code.
Returns
The function returns true if the error code is equivalent to the error condition object, or false otherwise.