Namespaces
Variants

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

From cppreference.net

void swap ( flat_set & 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 アルゴリズムを特殊化
(関数テンプレート)