Espaços nominais
Variantes
Acções

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

Da cppreference.com


template< class T >
void swap( {{{1}}}<T> &lhs, {{{1}}}<T> &rhs );
Especializa o algoritmo std::swap para std::{{{1}}}. Bolsas de valores do estado de lhs com a de rhs. Efetivamente chama 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.

Índice

[editar] Parâmetros

lhs, rhs -
fluxos cujo estado para trocar
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

(Nenhum)
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] Exceções

(Nenhum)
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] Exemplo

[editar] Veja também

(C++11)
swaps two string streams
(of std::{{{1}}} função pública membro) [edit]