Namespaces
Variants

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

From de.cppreference.net

void swap ( flat_multiset & other ) noexcept ;
(seit 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);

Inhalte

Parameter

other - Container-Adaptor, mit dem die Inhalte ausgetauscht werden sollen

Komplexität

Gleich wie zugrunde liegender Container (typischerweise konstant).

Beispiel

Siehe auch

spezialisiert den std::swap Algorithmus
(Funktionsschablone)