Espacios de nombres
Variantes
Acciones

std::swap(std::{{{1}}})

De cppreference.com


template< class T >
void swap( {{{1}}}<T> &lhs, {{{1}}}<T> &rhs );
Se especializa en el algoritmo std::swap std::{{{1}}}. Intercambios del estado de lhs con la de rhs. Efectivamente llama lhs.swap(rhs) .
Original:
Specializes the std::swap algorithm for std::{{{1}}}. Exchanges the state of lhs with that of rhs. Effectively 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.

Contenido

[editar] Parámetros

lhs, rhs -
corrientes cuyo estado para intercambiar
Original:
streams whose state to swap
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Valor de retorno

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

[editar] Excepciones

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

[editar] Ejemplo

[editar] Ver también

(C++11)
swaps two string streams
(función miembro pública de std::{{{1}}}) [editar]