operator==, <=> (std::flat_map)
来自 cppreference.cn
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) 与容器大小呈线性关系。
[编辑] 示例
本节不完整 原因:无示例 |