std::flat_multimap<Key,T,Compare,KeyContainer,MappedContainer>:: value_compare
|
class
value_compare
;
|
(C++23부터) | |
std::flat_multimap::value_compare
는
std::flat_multimap::const_reference
타입의 객체들(저장된 키/값에 대한 참조 쌍)을 전달된 쌍들의 첫 번째 구성 요소(즉, 키)를 비교하여 비교하는 함수 객체입니다.
목차 |
멤버 객체
| 멤버 이름 | 정의 |
comp
(private)
|
std::flat_multimap::key_compare
타입의 비교 함수 객체
( 설명 전용 멤버 객체* ) |
멤버 함수
|
(생성자)
(private)
|
value_compare
객체를 생성합니다
(public member function) |
|
operator()
|
value_type
타입의 두 값을 비교합니다
(public member function) |
std::flat_multimap<Key,T,Compare,KeyContainer,MappedContainer>::value_compare:: value_compare
|
private
:
value_compare ( key_compare c ) ; |
( 설명 전용* ) | |
기본 비교자 인스턴스
comp
를
c
로 초기화합니다.
매개변수
| c | - | 할당할 비교자 |
std::flat_multimap<Key,T,Compare,KeyContainer,MappedContainer>::value_compare:: operator()
|
bool
operator
(
)
(
const
const_reference
&
lhs,
const
const_reference
&
rhs
)
const
;
|
||
저장된 비교자
comp
를 호출하여
lhs.
first
와
rhs.
first
를 비교합니다.
매개변수
| lhs, rhs | - | 비교할 값들 |
반환 값
comp ( lhs. first , rhs. first )
예외
구현에서 정의된 예외를 발생시킬 수 있습니다.