operator==,<=> (std::flat_multimap)
From cppreference.net
<
cpp
|
container
|
flat multimap
C++
Containers library
|
(C++17)
|
||||
| Sequence | ||||
|
(C++11)
|
||||
|
(C++26)
|
||||
|
(C++26)
|
||||
|
(C++11)
|
||||
| Associative | ||||
| Unordered associative | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
| Adaptors | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
| Views | ||||
|
(C++20)
|
||||
|
(C++23)
|
||||
| Tables | ||||
| Iterator invalidation | ||||
| Member function table | ||||
| Non-member function table |
std::flat_multimap
| Member types | |||||||
| Member functions | |||||||
| Non-member functions | |||||||
|
|||||||
| Helper classes | |||||||
| Tags | |||||||
| Deduction guides | |||||||
|
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,
|
(2) | (自 C++23 起) |
|
此章节内容不完整
原因:仅适用于“扁平”容器:复制部分 Template:cpp/container/operator_cmp 的内容 |
目录 |
参数
| lhs, rhs | - |
要进行比较的容器适配器
|
返回值
1)
true
当且仅当对应比较结果为
true
,否则返回
false
。
2)
底层容器三路比较的结果。
复杂度
1)
当
lhs
与
rhs
大小不同时为常数时间复杂度,否则与
flat_multimap
的大小成线性关系。
2)
与容器大小呈线性关系。
示例
|
本节内容不完整
原因:缺少示例 |