Low level memory management — cppreference.com
De cppreference.com
<metanoindex/>
Le nouvelle expression est la seule façon de créer un objet ou un tableau d'objets avec la durée de stockage dynamique, c'est-à durée de vie ne se limite pas à la portée dans laquelle il est créé. Une nouvelle expression de stockage obtient en appelant une fonction de répartition. Un delete-expression détruit un objet le plus dérivé ou un tableau créé par une nouvelle expression et appelle la fonction de désallocation. L'allocation par défaut et les fonctions de désallocation, ainsi que des fonctions connexes, les types et les objets, sont déclarés dans l'en-tête <new> .
Original:
The nouvelle expression 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-expression 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.
Defined in header | |
Fonctions Original: Functions The text has been machine-translated via Google Translate. | |
fonctions d'allocation Original: allocation functions The text has been machine-translated via Google Translate. (fonction) [edit] | |
fonctions de désallocation Original: deallocation functions The text has been machine-translated via Google Translate. (fonction) [edit] | |
(C++11) |
obtient le gestionnaire courant nouveau Original: obtains the current new handler The text has been machine-translated via Google Translate. (fonction) [edit] |
enregistre un nouveau gestionnaire Original: registers a new handler The text has been machine-translated via Google Translate. (fonction) [edit] | |
Classes Original: Classes The text has been machine-translated via Google Translate. | |
Exception levée lorsque l'allocation de mémoire échoue Original: exception thrown when memory allocation fails The text has been machine-translated via Google Translate. (classe) [edit] | |
(C++11) |
exception levée sur l'allocation d'un tableau de longueur nulle Original: exception thrown on allocation of array with invalid length The text has been machine-translated via Google Translate. (classe) [edit] |
type de variable utilisé pour sélectionner une fonction non jets de répartition Original: tag type used to select an non-throwing allocation function The text has been machine-translated via Google Translate. (classe) [edit] | |
Types Original: Types The text has been machine-translated via Google Translate. | |
Type de pointeur de fonction du nouveau gestionnaire Original: function pointer type of the new handler The text has been machine-translated via Google Translate. (typedef) [edit] | |
Objets Original: Objects The text has been machine-translated via Google Translate. | |
un objet de type Original: an object of type The text has been machine-translated via Google Translate. (constante) [edit] | |