Namespaces
Variants

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

From cppreference.net

void swap ( flat_set & 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, other.c);

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)