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) 底层容器三路比较的结果。

复杂度

1) lhs rhs 大小不同时为常数时间复杂度,否则与 flat_multimap 的大小成线性关系。
2) 与容器大小呈线性关系。

示例