std::error_category::equivalent
From ko.cppreference.net
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 그렇지 않은 경우.