std::default_delete
De cppreference.com
|
|
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. |
| Definido en la cabecera <memory>
|
||
| template< class T > struct default_delete |
(1) | (desde C++11) |
| template< class T > struct default_delete<T[]> |
(2) | (desde C++11) |
std::default_delete es la política de destrucción por defecto utilizado por std::unique_ptr si no se ha especificado Deleter . Original:
std::default_delete is the default destruction policy used by std::unique_ptr if no deleter was specified. 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.
No especializado
2) default_delete delete utiliza para eliminar un único objetoOriginal:
Non-specialized
default_delete uses delete to delete a single objectThe 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.
Especialización parcial para los tipos de matriz se proporciona, utiliza delete[] lugar .
Original:
Partial specialization for array types is provided, it uses delete[] instead.
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] Las funciones miembro
| construye un objeto default_delete Original: constructs a default_delete object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función miembro público) | |
| Elimina el objeto o matriz Original: deletes the object or array The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función miembro público) |
[editar] Ver también
| (C++11) |
puntero inteligente con el único objeto de propiedad semántica Original: smart pointer with unique object ownership semantics The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (plantilla de clase) |

