<div class="t-tr-text">opérateur<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">operator</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> delete<div class="t-tr-text">, Opérateur<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">, operator</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> delete[]
![]() | 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. |
Déclaré dans l'en-tête <new> | ||
void operator delete (void* ptr ); | (1) | |
void operator delete[](void* ptr ); | (2) | |
void operator delete (void* ptr, conststd::nothrow_t&); | (3) | |
void operator delete[](void* ptr, conststd::nothrow_t&); | (4) | |
void operator delete (void* ptr, void*); | (5) | |
void operator delete[](void* ptr, void*); | (6) | |
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.
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.
You can help to correct and verify the translation. Click here for instructions.
ptr
est un pointeur NULL, la fonction de désallocation ne fait rien .ptr
is a null pointer, the deallocation function does nothing.You can help to correct and verify the translation. Click here for instructions.
Sommaire |
[modifier]Remplacement de la surcharge
<new>
n'est pas inclus. Ces fonctions sont' remplaçable: un fourni par l'utilisateur non membre de fonction avec la même signature remplace la version implicite. Au plus un remplacement peut être fournie pour chacune des quatre fonctions de désallocation implicites. En outre, le programme peut définir les versions de membre de classe de ces fonctions ou de définir des fonctions de répartition avec des signatures différentes (sauf 5-6) ne sont pas remplaçables) .<new>
header is not included. These functions are replaceable: a user-provided non-member function with the same signature replaces the implicit version. At most one replacement may be provided for each of the four implicit deallocation functions. Also, program can define class member versions of these functions or define allocation functions with different signatures (except 5-6) are not replaceable).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.
- 'Dans la portée globale': pour l'appeler, la signature des fonctions d'allocation de surcharge doit être visible sur le lieu de désallocation, à l'exception des fonctions de désallocation implicitement déclarés par défaut. Cette fonction d'allocation sera utilisé pour toutes les libérations avec des paramètres correspondants dans le programme actuelOriginal:in the global scope: in order to call it, the signature of the overloaded allocation functions must be visible at the place of deallocation, except for implicitly declared default deallocation functions. This allocation function will be used for all deallocations with corresponding parameters in the current programThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 'Dans la portée locale': l'
operator delete
surchargée doit être statique fonction membre public de la classe. Cette fonction de désallocation sera utilisé uniquement pour désallocations de cette catégorie particulière .Original:in the local scope: the overloadedoperator delete
must be static public member function of the class. This deallocation function will be used only for deallocations of that particular class.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
delete
lève les yeux pour le nom de la fonction appropriée de désallocation d'abord dans le domaine de la classe et après que dans la portée globale. Il peut être chargé de sauter la première étape. Notez que selon surcharge règles, toutes les fonctions de désallocation déclarées dans la portée de classe se cache toutes les fonctions de désallocation mondiaux. Pour plus d'informations supprimer l'expression voir .delete
expression looks up for appropriate deallocation function's name firstly in the class scope and after that in the global scope. It can be instructed to skip the first step. Note, that as per surcharge règles, any deallocation functions declared in class scope hides all global deallocation functions. For more information see supprimer l'expression.You can help to correct and verify the translation. Click here for instructions.
[modifier]Paramètres
ptr | - | pointeur vers une zone de mémoire à désallouer ou un pointeur nul Original: pointer to a memory area to deallocate or a null pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier]Retourne la valeur
You can help to correct and verify the translation. Click here for instructions.
[modifier]Exceptions
[modifier]Voir aussi
[modifier]Voir aussi
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) | |
Communiqués non initialisée stockage Original: releases uninitialized storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
Libère la mémoire Original: deallocates memory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) |