std::flat_set<Key,Compare,KeyContainer>:: swap
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_set
|
void
swap
(
flat_set
&
other
)
noexcept
;
|
(自 C++23 起) | |
other
. Effectively calls
ranges::swap(compare, other.compare); ranges::swap(c, other.c);
目录 |
参数
| 其他 | - | 容器适配器,用于交换内容 |
返回值
(无)
异常
(无)
复杂度
与底层容器相同(通常为常量)。
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
(C++23)
|
特化
std::swap
算法
(函数模板) |