Files
2025-10-25 03:02:53 +03:00

1.9 KiB

[syserr.compare]

19 Diagnostics library [diagnostics]

19.5 System error support [syserr]

19.5.6 Comparison operator functions [syserr.compare]

🔗

bool operator==(const error_code& lhs, const error_code& rhs) noexcept;

1

#

Returns: lhs.category() == rhs.category() && lhs.value() == rhs.value()

🔗

bool operator==(const error_code& lhs, const error_condition& rhs) noexcept;

2

#

Returns: lhs.category().equivalent(lhs.value(), rhs) || rhs.category().equivalent(lhs, rhs.value())

🔗

bool operator==(const error_condition& lhs, const error_condition& rhs) noexcept;

3

#

Returns: lhs.category() == rhs.category() && lhs.value() == rhs.value()

🔗

strong_ordering operator<=>(const error_code& lhs, const error_code& rhs) noexcept;

4

#

Effects: Equivalent to:if (auto c = lhs.category() <=> rhs.category(); c != 0) return c;return lhs.value() <=> rhs.value();

🔗

strong_ordering operator<=>(const error_condition& lhs, const error_condition& rhs) noexcept;

5

#

Returns: if (auto c = lhs.category() <=> rhs.category(); c != 0) return c;return lhs.value() <=> rhs.value();