Low level memory management
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. |
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.
You can help to correct and verify the translation. Click here for instructions.
Defined in 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. | |
fonctions d'allocation 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. (fonction) | |
fonctions de désallocation 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. (fonction) | |
(C++11) | obtient le gestionnaire courant nouveau 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. (fonction) |
enregistre un nouveau gestionnaire 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. (fonction) | |
Original: Classes The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
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. You can help to correct and verify the translation. Click here for instructions. (classe) | |
(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. You can help to correct and verify the translation. Click here for instructions. (classe) |
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. 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. | |
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. 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 objet de type nothrow_t utilisé pour sélectionner une fonction non jets de répartition Original: an object of type nothrow_t used to select an non-throwing allocation functionThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante) |