std::default_delete
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <memory> | ||
template<class T >struct default_delete | (1) | (dal C++11) |
template<class T >struct default_delete<T[]> | (2) | (dal C++11) |
std::default_delete
è la politica di distruzione predefinito utilizzato da std::unique_ptr deleter se non è stato specificato. 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.
Non specializzato
2) default_delete
delete utilizza per eliminare un singolo oggettoOriginal:
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.
Specializzazione parziale per i tipi di matrice è previsto, utilizza delete[] invece.
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.
[modifica]Membri funzioni
costruisce un oggetto 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. (metodo pubblico) | |
cancella l'oggetto o di una matrice 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. (metodo pubblico) |
[modifica]Vedi anche
(C++11) | puntatore intelligente con la semantica degli oggetti di proprietà uniche 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. (classe template) |