std::swap(std::function)
De cppreference.com
< cpp | utility | functional | function
![]() |
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 R, class Args... > void swap( function<R(Args...)> &lhs, function<R(Args...)> &rhs ); |
||
Surcharges l'algorithme std::swap pour std::function. Les échanges de l'état de
lhs
avec celle de rhs
. Appelle effectivement lhs.swap(rhs) .Original:
Overloads the std::swap algorithm for std::function. Exchanges the state of
lhs
with that of rhs
. Effectively 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 | - | emballages fonctions polymorphes dont les États à échanger
Original: polymorphic function wrappers whose states 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] Exceptions
(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] Exemple
This section is incomplete Reason: no example |
[modifier] Voir aussi
permute le contenu de deux instances de std::function (fonction membre publique) |