Namespaces
Variants

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

From cppreference.net

void swap ( flat_multiset & other ) noexcept ;
(自 C++23 起)
Exchanges the contents of the container adaptor with those of other . Effectively calls
ranges::swap(compare, other.compare);
ranges::swap(c, other.c);

目录

参数

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

返回值

(无)

异常

(无)

复杂度

与底层容器相同(通常为常量)。

示例

参见

特化 std::swap 算法
(函数模板)