std::swap(std::unique_ptr)
De cppreference.com
< cpp | memory | unique ptr
|
|
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, class Deleter > void swap( unique_ptr<T,Deleter> &lhs, unique_ptr<T,Deleter> &rhs ); |
(ya que C + +11) | |
Se especializa en el algoritmo std::swap std::unique_ptr. Intercambia los punteros de
lhs y rhs. Pide lhs.swap(rhs) .Original:
Specializes the std::swap algorithm for std::unique_ptr. Swaps the pointers 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.
Contenido |
[editar] Parámetros
| lhs, rhs | - | punteros inteligentes cuyos contenidos para intercambiar
Original: smart pointers 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. |
[editar] Valor de retorno
(Ninguno)
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.
[editar] Complejidad
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.
[editar] Ver también
| intercambia los contenidos Original: swaps the contents The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (miembro público función) | |