Namespaces
Variants

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

From ja.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);

目次

パラメータ

other - コンテンツを交換するためのコンテナアダプタ

計算量

基となるコンテナと同じ(通常は定数)。

例

関連項目

std::swap アルゴリズムを特殊化する
(関数テンプレート)