Namespaces
Variants

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

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

Table des matières

Paramètres

other - adaptateur de conteneur pour échanger le contenu avec

Valeur de retour

(aucun)

Exceptions

(aucun)

Complexité

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

Exemple

Voir aussi

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