std::default_delete
Da 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 no cabeçalho <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
é a política de destruição padrão usado pelo std::unique_ptr se não deleter foi especificado. 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.
Não especializado
2) default_delete
usa delete para apagar um ú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.
Especialização parcial para tipos de matriz é fornecido, ele usa delete[] vez.
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] Funções de membro
constrói um 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. (função pública membro) | |
Exclui o objeto ou 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. (função pública membro) |
[editar] Veja também
(C++11) |
ponteiro inteligente com a semântica de propriedade únicos objetos 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. (modelo de classe) |