Namespaces
Variants

std::error_category::operator==,!=,<,<=>

cppreference.net에서
 
 
유틸리티 라이브러리
일반 유틸리티
관계 연산자 (deprecated in C++20)
정수 비교 함수
(C++20)(C++20)(C++20)    
(C++20)
스왑 및 타입 연산
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
공통 어휘 타입
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)



 
 
 
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)와 동등합니다.

<, <=, >, >=, != 연산자는 각각 과 로부터 operator<=>합성operator==됩니다.

(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 .