Namespaces
Variants

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

From cppreference.net

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

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

const std:: flat_map & 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_map 의 크기에 선형 시간이 소요됩니다.
2) 컨테이너 크기에 선형적으로 비례합니다.

예제