◐ Shell
clean mode source ↗

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

De cppreference.com

<metanoindex/>

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

<tbody> </tbody>

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

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

Original:

Specializes the std::swap algorithm for std::priority_queue. 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é

Same as swapping the underlying container.

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]