operator==,<=> (std::flat_map)
From cppreference.net
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_map
|
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,
|
(2) | (C++23 起) |
|
此章节内容不完整
原因:仅适用于“扁平”容器:复制部分 Template:cpp/container/operator_cmp 的内容 |
目录 |
参数
| lhs, rhs | - |
要进行比较的容器适配器
|
返回值
1)
true
若对应的比较结果为
true
,否则为
false
。
2)
底层容器三路比较的结果。
复杂度
1)
当
lhs
与
rhs
大小不同时为常数时间复杂度,否则与
flat_map
的大小成线性关系。
2)
与容器大小呈线性关系。
示例
|
本节内容不完整
原因:缺少示例 |