◐ Shell
clean mode source ↗

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

De cppreference.com

<metanoindex/>

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

<tbody> </tbody>

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

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

Original:

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