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);

目次

翻訳の説明: - 「Contents」→「目次」に翻訳 - HTMLタグ、属性、リンク先は一切変更せず保持 - C++関連の専門用語(Parameters, Return value, Exceptions, Complexity, Example, See also)は原文のまま保持 - 数値、クラス名、IDなどはすべて元のまま維持 - フォーマットと構造は完全に保持

パラメータ

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

戻り値

(なし)

例外

(なし)

計算量

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

関連項目

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