std::flat_set<Key,Compare,KeyContainer>::swap
来自 cppreference.cn
void swap( flat_set& other ) noexcept; |
(since C++23) | |
other
交换容器适配器的内容。 有效地调用ranges::swap(compare, other.compare); ranges::swap(c, other.c);
内容 |
[edit] 参数
other | - | 与其交换内容的容器适配器 |
[edit] 返回值
(无)
[edit] 异常
(无)
[edit] 复杂度
与底层容器相同(通常为常数)。
[edit] 示例
本节不完整 原因:没有示例 |
[edit] 参见
(C++23) |
特化 std::swap 算法 (函数模板) |