<div class="t-tr-text">Betreiber<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">, Betreiber<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. |
<metanoindex/>
<tbody> </tbody>| definiert in Header <new>
|
||
void operator delete ( void* ptr ); |
(1) | |
void operator delete[]( void* ptr ); |
(2) | |
void operator delete ( void* ptr, const std::nothrow_t& ); |
(3) | |
void operator delete[]( void* ptr, const std::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.
1)
operator new(size_t) oder operator new(size_t, std::nothrow_t) erhaltenoperator new(size_t) or operator new(size_t, std::nothrow_t)You can help to correct and verify the translation. Click here for instructions.
2)
operator new[](size_t) oder operator new[](size_t, std::nothrow_t) erhaltenoperator new[](size_t) or operator new[](size_t, std::nothrow_t)You can help to correct and verify the translation. Click here for instructions.
3-4)
You can help to correct and verify the translation. Click here for instructions.
5-6)
You can help to correct and verify the translation. Click here for instructions.
ptr ein NULL-Zeiger ist, funktioniert die freigabe Funktion nichts .ptr is a null pointer, the deallocation function does nothing.You can help to correct and verify the translation. Click here for instructions.
Austauschen und Überlastung
<new> Header ist nicht inbegriffen. Diese Funktionen sind austauschbare: eine vom Benutzer bereitgestellte Nichtmitglied Funktion mit der gleichen Signatur ersetzt die implizite Version. Höchstens ein Ersatz kann jede der vier impliziten Deallocation Funktionen versehen werden. Außerdem können Programm zu definieren Klassen-Member-Versionen dieser Funktionen definieren oder Zuweisung Funktionen mit unterschiedlichen Signaturen (außer 5-6) sind nicht austauschbar) .<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.
- 'Im globalen Bereich': Um es nennen, die Signatur der überladenen Zuordnungsfunktionen muss sichtbar sein am Ort der freigabe, außer implizit deklarierte Standardwert deallocation Funktionen. Diese Zuordnung Funktion wird für alle Freigaben mit entsprechenden Parametern im aktuellen Programm verwendet werdenOriginal: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. - 'Im lokalen Bereich': die überladene
operator deletemüssen statische öffentliche Member-Funktion der Klasse sein. Diese deallocation Funktion wird nur für das Aufheben dieser bestimmten Klasse verwendet werden .Original:in the local scope: the overloadedoperator deletemust 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 Ausdruck für entsprechende deallocation Funktionsnamen zunächst in der Klasse Umfang und nach, dass im globalen Bereich. Es kann angewiesen werden, den ersten Schritt zu überspringen. Beachten Sie, dass nach Überlastung Regeln, verbirgt alle deallocation Funktionen in der Klasse deklariert alle globalen deallocation Funktionen. Für weitere Informationen siehe Löschen Ausdruck .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 Überlastung Regeln, any deallocation functions declared in class scope hides all global deallocation functions. For more information see Löschen Ausdruck.You can help to correct and verify the translation. Click here for instructions.
Parameter
| ptr | - | Zeiger auf einen Speicherbereich freizugeben oder eine Null-Zeiger
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. |
Rückgabewert
You can help to correct and verify the translation. Click here for instructions.
Ausnahmen
Siehe auch
Siehe auch
| Speicheranforderungsfunktion (Funktion) | |
Pressemitteilungen initialisierten Speicher 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. (Funktion) | |
Gibt den Speicherbereich 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. (Funktion) | |