std::error_category:: equivalent
From cppreference.net
<
cpp
|
error
|
error category
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Diagnostics library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::error_category
| Member functions | ||||
|
error_category::equivalent
|
||||
|
(until C++20)
(until C++20)
(C++20)
|
|
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 그렇지 않은 경우.