Espaços nominais
Variantes
Acções

Diferenças entre edições de "cpp/numeric/valarray/swap2"

Da cppreference.com
< cpp‎ | numeric‎ | valarray
m (r2.7.3) (Robô: A adicionar: de, en, es, fr, it, ja, ru, zh)
m (Use {{lc}}. Update links. Various fixes.)
 
Linha 2: Linha 2:
 
{{cpp/title | swap<small>(std::valarray)</small>}}
 
{{cpp/title | swap<small>(std::valarray)</small>}}
 
{{cpp/numeric/valarray/navbar}}
 
{{cpp/numeric/valarray/navbar}}
{{ddcl list begin}}
+
{{begin}}
{{ddcl list item |
+
{{|
 
template< class T >
 
template< class T >
 
void swap( valarray<T> &lhs, valarray<T> &rhs );
 
void swap( valarray<T> &lhs, valarray<T> &rhs );
 
}}
 
}}
{{ddcl list end}}
+
{{end}}
  
{{tr|Especializa o algoritmo {{c|std::swap}} para {{c|std::valarray}}. Trocar o conteúdo de {{tt|lhs}} e {{tt|rhs}}. Chamadas {{c|lhs.swap(rhs)}}.|Specializes the {{c|std::swap}} algorithm for {{c|std::valarray}}. Swaps the contents of {{tt|lhs}} and {{tt|rhs}}. Calls {{c|lhs.swap(rhs)}}.}}
+
{{tr|Especializa o algoritmo {{|std::swap}} para {{|std::valarray}}. Trocar o conteúdo de {{tt|lhs}} e {{tt|rhs}}. Chamadas {{c|lhs.swap(rhs)}}.|Specializes the {{|std::swap}} algorithm for {{|std::valarray}}. Swaps the contents of {{tt|lhs}} and {{tt|rhs}}. Calls {{c|lhs.swap(rhs)}}.}}
  
 
===Parâmetros===
 
===Parâmetros===
{{param list begin}}
+
{{begin}}
{{param list item | lhs, rhs |{{tr| valarrays cujos conteúdos para trocar| valarrays whose contents to swap}}}}
+
{{| lhs, rhs |{{tr| valarrays cujos conteúdos para trocar| valarrays whose contents to swap}}}}
{{param list end}}  
+
{{end}}  
  
 
===Valor de retorno===
 
===Valor de retorno===
Linha 23: Linha 23:
  
 
===Veja também===
 
===Veja também===
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/numeric/valarray/dcl list swap}}
+
{{| cpp/numeric/valarray/swap}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/numeric/valarray/swap2]]
 
[[de:cpp/numeric/valarray/swap2]]

Edição actual desde as 10h18min de 2 de julho de 2013

 
 
Biblioteca numéricos
Funções matemáticas comuns
De ponto flutuante ambiente
Números complexos
Matrizes numéricas
Pseudo-aleatório de geração de números
Tempo de compilação aritmética racional (C++11)
Genéricos operações numéricas
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
 
 
template< class T >
void swap( valarray<T> &lhs, valarray<T> &rhs );
Especializa o algoritmo std::swap para std::valarray. Trocar o conteúdo de lhs e rhs. Chamadas lhs.swap(rhs).
Original:
Specializes the std::swap algorithm for std::valarray. 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.

Índice

[editar] Parâmetros

lhs, rhs -
valarrays cujos conteúdos para trocar
Original:
valarrays 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.

[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] Complexidade

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

[editar] Veja também

swaps com outro valarray
Original:
swaps with another valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro) [edit]