返回指定的值错误对象是否等效。
virtual bool equivalent(value_type _Errval,
    const error_condition& _Cond) const;
virtual bool equivalent(const error_code& _Code,
    value_type _Errval) const;
参数
Parameter  | 
说明  | 
|---|---|
_Errval  | 
比较的错误代码值。  | 
_Cond  | 
比较的 error_condition 对象。  | 
_Code  | 
比较的 error_code 对象。  | 
返回值
true,如果该类别和值相等;否则,false。
备注
第一个成员函数返回 *this == _Cond.category() && _Cond.value() == _Errval。
第二个成员函数返回 *this == _Code.category() && _Code.value() == _Errval。
要求
标头: <system_error>
命名空间: std