[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/error/error_condition/operator_cmp [Back]  [Original]

operator==,!=,<,<=>(std::error_condition) cppreference.com
cppreference.com

operator==,!=,<,<=>(std::error_condition)

cppreference.com
 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
 
 
 
<tbody> </tbody>
bool operator==( const std::error_condition& lhs, const std::error_condition& rhs ) noexcept;
(1) ( C++11)
bool operator!=( const std::error_condition& lhs, const std::error_condition& rhs ) noexcept;
(2) ( C++11)
( C++20)
bool operator<( const std::error_condition& lhs, const std::error_condition& rhs ) noexcept;
(3) ( C++11)
( C++20)
std::strong_ordering operator<=>( const std::error_condition& lhs, const std::error_condition& rhs ) noexcept;
(4) ( C++20)
bool operator==( const std::error_code& code, const std::error_condition& cond ) noexcept;
(5) ( C++11)
bool operator==( const std::error_condition& cond, const std::error_code& code ) noexcept;
(5) ( C++11)
( C++20)
bool operator!=( const std::error_code& code, const std::error_condition& cond ) noexcept;
(6) ( C++11)
( C++20)
bool operator!=( const std::error_condition& cond, const std::error_code& code ) noexcept;
(6) ( C++11)
( C++20)

.

1) , lhs rhs.
2) , lhs rhs.
3) , lhs rhs.
4) lhs rhs.
5) , code cond.
6) , code cond.

<, <=, >, >= != operator<=> operator== .

( C++20)

lhs, rhs, cond
code

1) true, .
2) true, .
3) true, lhs.category() < rhs.category(). true, lhs.category() == rhs.category() && lhs.value() < rhs.value(). false.
4) lhs.category() <=> rhs.category(), std::strong_ordering::equal. lhs.value() <=> rhs.value().
5) true, code.category().equivalent(code.value(), cond) cond.category().equivalent(code, cond.value()).
6) true, code.category().equivalent(code.value(), cond), cond.category().equivalent(code, cond.value()).

[virtual]
error_code error_condition
(virtual public of std::error_category -) []
error_code
() []

Web Proxy Viewer  |  New URL  |  Original Page