名稱空間
變體
操作

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

來自 cppreference.com
< cpp‎ | 容器‎ | flat set
 
 
 
 
void swap( flat_set& other ) noexcept;
(C++23 起)
交換容器介面卡與 other 的內容。實際呼叫
ranges::swap(compare, other.compare);
ranges::swap(c, other.c);

目錄

[編輯] 引數

其他 - 用於交換內容的容器介面卡

[編輯] 返回值

(無)

[編輯] 異常

(無)

[編輯] 複雜度

與底層容器相同(通常是常數時間)。

[編輯] 示例

[編輯] 參閱

特化 std::swap 演算法
(函式模板) [編輯]