Namensräume
Varianten
Aktionen

<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[]

Aus cppreference.com
< cpp‎ | memory‎ | new

 
 
 
Dynamische Speicherverwaltung
Low-Level-Speicherverwaltung
Zuweiser
Original:
Allocators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
allocator
allocator_traits(C++11)
allocator_arg_t(C++11)
allocator_arg(C++11)
uses_allocator(C++11)
scoped_allocator_adaptor(C++11)
Initialisierter Speicher
Original:
Uninitialized storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
uninitialized_copy
uninitialized_copy_n(C++11)
uninitialized_fill
uninitialized_fill_n
raw_storage_iterator
get_temporary_buffer
return_temporary_buffer
Intelligente Zeiger
Original:
Smart pointers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unique_ptr(C++11)
shared_ptr(C++11)
weak_ptr(C++11)
auto_ptr(veraltet)
owner_less(C++11)
enable_shared_from_this(C++11)
bad_weak_ptr(C++11)
default_delete(C++11)
Garbage Collection Unterstützung
Original:
Garbage collection support
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
declare_reachable(C++11)
undeclare_reachable(C++11)
declare_no_pointers(C++11)
undeclare_no_pointers(C++11)
pointer_safety(C++11)
get_pointer_safety(C++11)
Verschiedenes
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pointer_traits(C++11)
addressof(C++11)
align(C++11)
C-Bibliothek
Original:
C Library
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Low-Level-Speicherverwaltung
Funktionen
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator new
operator new[]
operator delete
operator delete[]
get_new_handler(C++11)
set_new_handler
Classes
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
bad_alloc
bad_array_new_length(C++11)
nothrow_t
Types
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
new_handler
Objects
Original:
Objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
nothrow
 
Defined 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)
Freigibt Lagerung. Diese Aufteilung Funktionen werden durch delete-Ausdrücke rief Speicher nach zerstörenden dynamische Objekte freizugeben .
Original:
Deallocates storage. These allocation functions are called by delete-Ausdrücke to deallocate memory after destructing dynamic objects.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Freigibt Lagerung, durch einen Aufruf operator new(size_t) oder operator new(size_t, std::nothrow_t) erhalten
Original:
Deallocates storage, obtained by a call to operator new(size_t) or operator new(size_t, std::nothrow_t)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Freigibt Lagerung, durch einen Aufruf operator new[](size_t) oder operator new[](size_t, std::nothrow_t) erhalten
Original:
Deallocates storage, obtained by a call to operator new[](size_t) or operator new[](size_t, std::nothrow_t)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3-4)
Gleich wie 1-2), es sei denn ersetzt. Diese Versionen werden von Nicht-Werfen neuen Ausdrücken aufgerufen, wenn ein Konstruktor nennen sie löst eine Ausnahme .
Original:
Same as 1-2) unless replaced. These versions are called by non-throwing new-expressions if a constructor they call throws an exception.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
5-6)
Nichts zu tun. Diese Versionen werden durch die Platzierung neuer Ausdrücke aufgerufen, wenn ein Konstruktor nennen sie löst eine Ausnahme .
Original:
Do nothing. These versions are called by placement new expressions if a constructor they call throws an exception.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
In allen Fällen, wenn ptr ein NULL-Zeiger ist, funktioniert die freigabe Funktion nichts .
Original:
In all cases, if ptr is a null pointer, the deallocation function does nothing.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Inhaltsverzeichnis

[Bearbeiten] Austauschen und Überlastung

Die Versionen 1-4) sind implizit in jeder Übersetzungseinheit deklariert, auch wenn die <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) .
Original:
The versions 1-4) are implicitly declared in each translation unit even if the <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).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Die deallocation Funktion ersetzt / überlastet in zweierlei Hinsicht:
Original:
The deallocation function can be replaced/overloaded in two ways:
The text has been machine-translated via Google Translate.
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 werden
Original:
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 program
The 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 delete mü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 overloaded operator 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.
Während der Kompilierung, sieht jeder 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 .
Original:
During compilation, each 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.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] 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.

[Bearbeiten] Rückgabewert

(None)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Ausnahmen

noexcept specification:  
noexcept
  (seit C++11)

[Bearbeiten] Siehe auch

[Bearbeiten] Siehe auch

Zuordnungsfunktionen
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.

(Funktion) [edit]
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)