std::queue::swap — cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
|
|
||
Échanges le contenu de l'adaptateur de réservoir avec ceux de other. Effectively calls using std::swap; swap(c, other.c);
Original:
Exchanges the contents of the container adaptor with those of other. Effectively calls using std::swap; swap(c, other.c);
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Paramètres
| other | - | Adaptateur récipient à échanger avec le contenu Original: container adaptor to exchange the contents with The text has been machine-translated via Google Translate. |
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é
Idem conteneur sous-jacent (linéaire si Container est std :: array, constante contraire)
Original:
Same as underlying container (linear if Container is std :: array, constant otherwise)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Voir aussi
l'algorithme spécialisé std::swap Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. (fonction générique) [edit] | |