Namespaces
Variants

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

From fr.cppreference.net

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

Contenu

Paramètres

other - adaptateur de conteneur pour échanger le contenu avec

Complexité

Identique au conteneur sous-jacent (généralement constant).

Exemple

Voir aussi

spécialise l'algorithme std::swap
(modèle de fonction)