Namespaces
Variants

operator==,<=> (std::flat_multimap)

From cppreference.net

friend bool operator == ( const std:: flat_multimap & lhs,
const std:: flat_multimap & rhs ) ;
(1) (C++23부터)
friend synth - three - way - result < value_type >

operator <=> ( const std:: flat_multimap & lhs,

const std:: flat_multimap & rhs ) ;
(2) (C++23부터)
Compares the contents of the underlying containers of two container adaptors. The comparison is done by applying the corresponding operator to the underlying containers.

목차

매개변수

lhs, rhs - 비교할 컨테이너 어댑터의 내용

반환값

1) true 해당 비교가 true 를 산출하면, false 그렇지 않으면.
2) 기본 컨테이너에 대한 3방향 비교 결과.

복잡도

1) lhs rhs 의 크기가 다른 경우 상수 시간, 그렇지 않으면 flat_multimap 의 크기에 선형 시간.
2) 컨테이너 크기에 선형적으로 비례합니다.

예제