◐ Shell
clean mode source ↗

std::swap(std::unordered_map) — cppreference.com

De cppreference.com

<metanoindex/>

Modèle en boucle détecté : Modèle:include page

<tbody> </tbody>

template< > void swap( unordered_map<> &lhs, unordered_map<> &rhs );

(depuis C++11)

Spécialisé l'algorithme std::swap pour std::unordered_map. Swaps le contenu de lhs et rhs. Appels lhs.swap(rhs) .

Original:

Specializes the std::swap algorithm for std::unordered_map. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs).

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Paramètres

lhs, rhs -

conteneurs dont le contenu à échanger

Original:

containers whose contents to swap

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Retourne la valeur

(Aucun)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Complexité

Constant.

Voir aussi

permute les contenus

Original:

swaps the contents

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(fonction membre publique) [edit]