std::error_category::operator==,!=,<,<=>
cppreference.net에서
bool operator==( const error_category& rhs ) const noexcept;
|
(1) | (since C++11) |
bool operator!=( const error_category& rhs ) const noexcept;
|
(2) | (since C++11) (until C++20) |
bool operator<( const error_category& rhs ) const noexcept;
|
(3) | (since C++11) (until C++20) |
std::strong_ordering operator<=>( const error_category& rhs ) const noexcept;
|
(4) | (since C++20) |
다른 오류 범주와 비교합니다.
1)
*this과 rhs가 동일한 객체를 참조하는지 확인합니다.2)
*this와 rhs이 동일한 객체를 참조하지 않는지 확인합니다.3)
*this과 rhs을 this와 &rhs의 순서로 정렬합니다. std::less<const error_category*>()(this, &rhs)와 동등합니다.4)
*this과 rhs를 this와 &rhs의 순서로 정렬합니다. std::compare_three_way()(this, &rhs)와 동등합니다.|
|
(since C++20) |
매개변수
| rhs | - |
비교할
error_category
를 지정합니다
|
반환값
1)
true
만약
*
this
와
rhs
가 동일한 객체를 참조하면,
false
그렇지 않으면.
2)
true
만약
*
this
와
rhs
가 동일한 객체를 참조하지 않으면,
false
그렇지 않으면.
3)
true
를 반환합니다, 만약
*
this
가
rhs
보다 작은 경우로,
this
와
&
rhs
의 순서에 따라 정의됩니다.
4)
std
::
strong_order
::
less
만약
*
this
가
rhs
보다 작으면 (순서 정의에 따라),
그렇지 않으면
std
::
strong_order
::
greater
만약
rhs
가
*
this
보다 작으면, 그렇지 않으면
std
::
strong_order
::
equal
.