Defined in header <system_error> | ||
---|---|---|
bool operator==( const error_code& lhs, const error_code& rhs ) noexcept; | (1) | (since C++11) |
bool operator!=( const error_code& lhs, const error_code& rhs ) noexcept; | (1) | (since C++11) |
bool operator<( const error_code& lhs, const error_code& rhs ) noexcept; | (1) | (since C++11) |
Compares two error code objects.
lhs
and rhs
for equality.lhs
and rhs
for equality.lhs
is less than rhs
. lhs, rhs | - | error codes 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
obtains the error_category for this error_code (public member function) |
|
obtains the value of the error_code (public member function) |
|
compares error_conditions and error_codes (function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/error/error_code/operator_cmp