Espaces de noms
Variantes
Affichages
Actions

cpp/numeric/valarray/swap2 : Différence entre versions

De cppreference.com
< cpp‎ | numeric‎ | valarray
m (r2.7.3) (robot Ajoute : de, en, es, it, ja, pt, ru, zh)
m (Use {{lc}}. Update links. Various fixes.)
 
Ligne 2 : Ligne 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|Spécialisé l'algorithme {{c|std::swap}} pour {{c|std::valarray}}. Swaps le contenu de {{tt|lhs}} et {{tt|rhs}}. Appels {{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|Spécialisé l'algorithme {{|std::swap}} pour {{|std::valarray}}. Swaps le contenu de {{tt|lhs}} et {{tt|rhs}}. Appels {{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)}}.}}
  
 
===Paramètres===
 
===Paramètres===
{{param list begin}}
+
{{begin}}
{{param list item | lhs, rhs |{{tr| valarrays dont le contenu à échanger| valarrays whose contents to swap}}}}
+
{{| lhs, rhs |{{tr| valarrays dont le contenu à échanger| valarrays whose contents to swap}}}}
{{param list end}}  
+
{{end}}  
  
 
===Retourne la valeur===
 
===Retourne la valeur===
Ligne 23 : Ligne 23 :
  
 
===Voir aussi===
 
===Voir aussi===
{{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]]

Version actuelle en date du 2 juillet 2013 à 05:42

 
 
Bibliothèque Numerics
Fonctions mathématiques courantes
Virgule flottante environnement
Nombres complexes
Tableaux numériques
La génération de nombres pseudo-aléatoires
Moment de la compilation arithmétique rationnelle (C++11)
Génériques des opérations numériques
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 );
Spécialisé l'algorithme std::swap pour std::valarray. Swaps le contenu de lhs et rhs. Appels 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.

Sommaire

[modifier] Paramètres

lhs, rhs -
valarrays dont le contenu à échanger
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.

[modifier] 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.

[modifier] Complexité

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

[modifier] Voir aussi

swaps avec une autre 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.

(fonction membre publique) [edit]