Share via


error_category::equivalent

Returns a value that specifies whether error objects are equivalent.

virtual bool equivalent(value_type _Errval,
    const error_condition& _Cond) const;
virtual bool equivalent(const error_code& _Code,
    value_type _Errval) const;

Parameters

Parameter

Description

_Errval

The error code value to compare.

_Cond

The error_condition object to compare.

_Code

The error_code object to compare.

Return Value

true if the category and value are equal; otherwise, false.

Remarks

The first member function returns *this == _Cond.category() && _Cond.value() == _Errval.

The second member function returns *this == _Code.category() && _Code.value() == _Errval.

Requirements

Header: <system_error>

Namespace: std

See Also

Reference

error_category Class