Namespace
Varianti

cpp/numeric/valarray/swap2: differenze tra le versioni

Da cppreference.com.
< cpp‎ | numeric‎ | valarray
m (r2.7.3) (Bot: Aggiungo de, en, es, fr, ja, pt, ru, zh)
m (Use {{lc}}. Update links. Various fixes.)
 
Riga 2: Riga 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|Specializzato l'algoritmo {{c|std::swap}} per {{c|std::valarray}}. Scambia il contenuto di {{tt|lhs}} e {{tt|rhs}}. Chiamate {{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|Specializzato l'algoritmo {{|std::swap}} per {{|std::valarray}}. Scambia il contenuto di {{tt|lhs}} e {{tt|rhs}}. Chiamate {{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)}}.}}
  
 
===Parametri===
 
===Parametri===
{{param list begin}}
+
{{begin}}
{{param list item | lhs, rhs |{{tr| valarrays il cui contenuto di scambiare| valarrays whose contents to swap}}}}
+
{{| lhs, rhs |{{tr| valarrays il cui contenuto di scambiare| valarrays whose contents to swap}}}}
{{param list end}}  
+
{{end}}  
  
 
===Valore di ritorno===
 
===Valore di ritorno===
Riga 23: Riga 23:
  
 
===Vedi anche===
 
===Vedi anche===
{{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]]

Versione attuale delle 14:55, 2 lug 2013

 
 
Numeri libreria
Comuni funzioni matematiche
Virgola mobile ambiente
I numeri complessi
Array numerici
Pseudo-casuale generazione
In fase di compilazione aritmetica razionale (C++11)
Generici operazioni numeriche
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.
iota(C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
 
template< class T >
void swap( valarray<T> &lhs, valarray<T> &rhs );
Specializzato l'algoritmo std::swap per std::valarray. Scambia il contenuto di lhs e rhs. Chiamate 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.

Indice

[modifica] Parametri

lhs, rhs -
valarrays il cui contenuto di scambiare
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.

[modifica] Valore di ritorno

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

[modifica] Complessità

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

[modifica] Vedi anche

swap con un'altra 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.

(metodo pubblico) [modifica]