命名空间
变体
操作

std::flat_multiset<Key,Compare,KeyContainer>::swap

来自 cppreference.cn
 
 
 
 
void swap( flat_multiset& other ) noexcept;
(C++23 起)
交换容器适配器与 other 的内容。实际调用
ranges::swap(compare, other.compare);
ranges::swap(c, other.c);

目录

[编辑] 参数

其他 - 用于交换内容的容器适配器

[编辑] 返回值

(无)

[编辑] 异常

(无)

[编辑] 复杂度

与底层容器相同(通常是常数时间)。

[编辑] 示例

[编辑] 参阅

特化 std::swap 算法
(函数模板) [编辑]