cpp/numeric/valarray/swap2 : Différence entre versions
De cppreference.com
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}} | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| |
template< class T > | template< class T > | ||
void swap( valarray<T> &lhs, valarray<T> &rhs ); | void swap( valarray<T> &lhs, valarray<T> &rhs ); | ||
}} | }} | ||
− | {{ | + | {{end}} |
− | {{tr|Spécialisé l'algorithme {{ | + | {{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=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| lhs, rhs |{{tr| valarrays dont le contenu à échanger| valarrays whose contents to swap}}}} |
− | {{ | + | {{end}} |
===Retourne la valeur=== | ===Retourne la valeur=== | ||
Ligne 23 : | Ligne 23 : | ||
===Voir aussi=== | ===Voir aussi=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/numeric/valarray/swap}} |
− | {{ | + | {{end}} |
[[de:cpp/numeric/valarray/swap2]] | [[de:cpp/numeric/valarray/swap2]] |
Version actuelle en date du 2 juillet 2013 à 05:42
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
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.
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.
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.
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) |