operator==,<=>(std::flat_map)
来自 cppreference.cn
friend bool operator==( const std::flat_map& lhs, const std::flat_map& rhs ); |
(1) | (since C++23) |
friend synth-three-way-result<value_type> operator<=>( const std::flat_map& lhs, |
(2) | (since C++23) |
本节尚不完整 原因:仅对于“flat”容器:复制 Template:cpp/container/operator_cmp 的部分内容 |
目录 |
[编辑] 参数
lhs,rhs | - | 要比较其内容的容器适配器
|
[编辑] 返回值
1) true 如果相应的比较产生 true,则为 true,否则为 false。
2) 底层容器的三向比较结果。
[编辑] 复杂度
1) 如果 lhs 和 rhs 的大小不同,则为常数时间复杂度;否则,与 flat_map 的大小呈线性关系。
2) 与容器大小呈线性关系。
[编辑] 示例
本节尚不完整 原因:没有示例 |