Namespaces
Variants

std::error_category::equivalent

From ko.cppreference.net
 
 
유틸리티 라이브러리
일반 유틸리티
관계 연산자 (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)



 
 
 
virtual bool equivalent( int code, 
                         const std::error_condition& condition ) const noexcept;
(1) (C++11부터)
virtual bool equivalent( const std::error_code& code,
                         int condition ) const noexcept;
(2) (C++11부터)

*this로 나타내는 오류 범주에 대해 오류 코드가 오류 조건과 동등한지 확인합니다.

1) default_error_condition(code) == condition와 동등합니다.
2) *this == code.category() && code.value() == condition와 동등합니다.

매개변수

code - 비교할 오류 코드를 지정합니다
condition - 비교할 오류 조건을 지정합니다

반환값

true 오류 코드가 * this 가 나타내는 오류 범주에 대해 주어진 오류 조건과 동등한 경우, false 그렇지 않은 경우.