std::is_eq, std::is_neq, std::is_lt, std::is_gt, std::is_lteq, std::is_gteq
cppreference.net에서 발췌
| 헤더 <compare>
|
||
constexpr bool is_eq( std::partial_ordering cmp ) noexcept;
|
에 정의됨 (1) | (C++20부터) |
constexpr bool is_neq( std::partial_ordering cmp ) noexcept;
|
(2) | (C++20부터) |
constexpr bool is_lt( std::partial_ordering cmp ) noexcept;
|
(3) | (C++20부터) |
constexpr bool is_lteq( std::partial_ordering cmp ) noexcept;
|
(4) | (C++20부터) |
constexpr bool is_gt( std::partial_ordering cmp ) noexcept;
|
(5) | (C++20부터) |
constexpr bool is_gteq( std::partial_ordering cmp ) noexcept;
|
(6) | (C++20부터) |
이 함수들은 삼자 비교의 결과를 받아 여섯 관계 연산자 중 하나의 결과로 변환합니다.
구체적으로, 이 함수들은 다음을 반환합니다.
1)
cmp == 02)
cmp != 03)
cmp < 04)
cmp <= 05)
cmp > 06)
cmp >= 0매개변수
| cmp | - | 3-way 비교 결과 |
반환값
bool 해당 관계 연산의 결과
예제
|
이 섹션은 불완전합니다
이유: 예시가 없음 |
참고 항목
|
(C++20)
|
6가지 연산자를 모두 지원하고, 치환 가능하지 않으며, 비교 불가능한 값을 허용하는 3-way 비교의 결과 타입
(class) |