std::swap
![]() |
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. |
Defined in header <algorithm>
Defined in header <utility> |
(avant C++11) (depuis C++11) |
|
template< class T > void swap( T& a, T& b ); |
(1) | |
template< class T2, size_t N > void swap( T2 (&a)[N], T2 (&b)[N]); |
(2) | (depuis C++11) |
You can help to correct and verify the translation. Click here for instructions.
maria 123456
1)a
et b
.a
and b
.You can help to correct and verify the translation. Click here for instructions.
maria 123456
2)a
et b
. En effet appelle std::swap_ranges(a, a+N, b) .You can help to correct and verify the translation. Click here for instructions.
maria 123456
Sommaire |
[modifier] Paramètres
a, b | - | les valeurs à permuter
Original: the values to be swapped The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria 123456 |
Type requirements | ||
-T must meet the requirements of MoveAssignable and MoveConstructible .
| ||
-T2 must meet the requirements of Swappable .
|
[modifier] Retourne la valeur
You can help to correct and verify the translation. Click here for instructions.
maria 123456
[modifier] Exceptions
1) noexcept(noexcept( std::is_nothrow_move_constructible<T>::value && |
||
[modifier] Complexité
1)You can help to correct and verify the translation. Click here for instructions.
maria 123456
2)You can help to correct and verify the translation. Click here for instructions.
maria 123456
[modifier] Spécialisations
Swappable
) .Swappable
concept).You can help to correct and verify the translation. Click here for instructions.
maria 123456
You can help to correct and verify the translation. Click here for instructions.
maria 123456
(C++11) |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
permet de spécialiser l'algorithme std::swap (fonction générique) |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
(C++11) |
l'algorithme spécialisé
std::swap() Original: specializes the std::swap() algorithmThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé
std::swap() Original: specializes the std::swap() algorithmThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
l'algorithme spécialisé
std::swap() Original: specializes the std::swap() algorithmThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé
std::swap() Original: specializes the std::swap() algorithmThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
l'algorithme spécialisé
std::swap() Original: specializes the std::swap() algorithmThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
(C++11) |
l'algorithme spécialisé
std::swap() Original: specializes the std::swap() algorithmThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé
std::swap() Original: specializes the std::swap() algorithmThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé
std::swap() Original: specializes the std::swap() algorithmThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé std::swap
Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé
std::swap() Original: specializes the std::swap() algorithmThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé
std::swap() Original: specializes the std::swap() algorithmThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
(C++11) |
l'algorithme spécialisé
std::swap() Original: specializes the std::swap() algorithmThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |
[modifier] Exemple
This section is incomplete Reason: no example |
[modifier] Voir aussi
permute les éléments pointés par deux itérateurs
Original: swaps the elements pointed to by two iterators The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 | |
swaps de deux gammes d'éléments
Original: swaps two ranges of elements The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. maria
123456 |