Namespaces
Variants

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

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

Inhaltsverzeichnis

Parameter

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

Rückgabewert

(keine)

Ausnahmen

(keine)

Komplexität

Gleich wie zugrunde liegender Container (typischerweise konstant).

Beispiel

Siehe auch

spezialisiert den std::swap Algorithmus
(Funktionsschablone)