Defined in header <system_error> | ||
---|---|---|
bool operator==( const error_condition& lhs, const error_condition& rhs ) noexcept; | (1) | (since C++11) |
bool operator!=( const error_condition& lhs, const error_condition& rhs ) noexcept; | (2) | (since C++11) |
bool operator<( const error_condition& lhs, const error_condition& rhs ) noexcept; | (3) | (since C++11) |
bool operator==( const error_code& code, const error_condition& cond ) noexcept; | (4) | (since C++11) |
bool operator==( const error_condition& cond, const error_code& code ) noexcept; | (4) | (since C++11) |
bool operator!=( const error_code& code, const error_condition& cond ) noexcept; | (5) | (since C++11) |
bool operator!=( const error_condition& cond, const error_code& code ) noexcept; | (5) | (since C++11) |
Compares two error conditions.
lhs
and rhs
are equal.lhs
and rhs
are not equal.lhs
is less than rhs
.code
is a semantic match for cond
.code
is not a semantic match for cond
.lhs, rhs | - | error conditions to compare |
true
if the error category and error value compare equal.true
if the error category or error value compare are not equal.true
if lhs.category() < rhs.category()
. Otherwise, true
if lhs.category() == rhs.category() && lhs.value() < rhs.value()
. Otherwise, false
.true
if either code.category().equivalent(code.value(), cond)
or cond.category().equivalent(code, cond.value())
.true
if neither code.category().equivalent(code.value(), cond)
nor cond.category().equivalent(code, cond.value())
.
[virtual] | compares error_code and error_condition for equivalence (virtual public member function of std::error_category ) |
compares two error_code s (function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/error/error_condition/operator_cmp