Share via


error_code::operator==

Tests for equality between error_code objects.

bool operator==(const error_code& _Right) const;

Parameters

Parameter

Description

_Right

The object to be tested for equality.

Return Value

true if the objects are equal; false if objects are not equal.

Remarks

The member operator returns category() == _Right.category() && value == _Right.value().

Requirements

Header: <system_error>

Namespace: std

See Also

Reference

error_code Class