Namespaces
Variants

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

From cppreference.net

void swap ( flat_multimap & 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.keys, other.c.keys);
ranges::swap(c.values, other.c.values);

目次

パラメータ

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

戻り値

(なし)

例外

(なし)

計算量

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

関連項目

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