名稱空間
變體
操作

std::flat_multimap<Key,T,Compare,KeyContainer,MappedContainer>::swap

來自 cppreference.com
 
 
 
 
void swap( flat_multimap& other ) noexcept;
(C++23 起)
交換容器介面卡與 other 的內容。實際呼叫
ranges::swap(compare, other.compare);
ranges::swap(c.keys, other.c.keys);
ranges::swap(c.values, other.c.values);

目錄

[編輯] 引數

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

[編輯] 返回值

(無)

[編輯] 異常

(無)

[編輯] 複雜度

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

[編輯] 示例

[編輯] 參閱

特化 std::swap 演算法
(function template) [edit]