Low level memory management
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. |
Il nuovo-espressione è l'unico modo per creare un oggetto o una matrice di oggetti con durata di stoccaggio dinamico, cioè con durata non limitata all'ambito in cui viene creato. Una nuova espressione di archiviazione ottiene chiamando una funzione di allocazione. Un delete-espressione distrugge un oggetto più derivata o un array creato da una nuova espressione e chiama la funzione deallocazione. L'assegnazione di default e le funzioni deallocazione, con funzioni correlate, i tipi e gli oggetti, sono dichiarati nell'intestazione
<new>
. Original:
The nuovo-espressione is the only way to create an object or an array of objects with dynamic storage duration, that is, with lifetime not restricted to the scope in which it is created. A new-expression obtains storage by calling an allocation function. A delete-espressione destroys a most derived object or an array created by a new-expression and calls the deallocation function. The default allocation and deallocation functions, along with related functions, types, and objects, are declared in the header
<new>
. 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.
Definizione nell'header
<new> | |
Original: Functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
allocazione funzioni Original: allocation functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
deallocazione funzioni Original: deallocation functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
(C++11) |
ottiene il gestore nuova corrente Original: obtains the current new handler The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
registra un nuovo gestore Original: registers a new handler The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
Original: Classes The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Eccezione generata quando allocazione memoria fallisce Original: exception thrown when memory allocation fails The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) | |
(C++11) |
eccezione generata sulla ripartizione delle array con lunghezza non valida Original: exception thrown on allocation of array with invalid length The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) |
tipo di tag utilizzato per selezionare un non-lancio' assegnazione funzione Original: tag type used to select an non-throwing allocation function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) | |
Original: Types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
funzione di tipo puntatore del nuovo gestore Original: function pointer type of the new handler The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) | |
Original: Objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
un oggetto di tipo nothrow_t utilizzato per selezionare un non-lancio' assegnazione funzione Original: an object of type nothrow_t used to select an non-throwing allocation function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (costante) |