◐ Shell
clean mode source ↗

Low level memory management – cppreference.com

Aus cppreference.com

<metanoindex/>

Die new-Ausdruck ist der einzige Weg, ein Objekt oder ein Array von Objekten mit dynamischen Lagerdauer erstellen, das heißt, mit einer Lebensdauer nicht auf den Umfang, in dem es erstellt wird beschränkt. Ein neuer Ausdruck erhält Lagerung indem eine Zuordnung Funktion. A delete-Ausdruck zerstört eine am stärksten abgeleitete Objekt oder ein Array von einem neuen Ausdruck erstellt und ruft die deallocation Funktion. Die Standard-Zuweisung und Freigabe-Funktionen zusammen mit den zugehörigen Funktionen, Typen und Objekte sind in der Header <new> erklärt .

Original:

The new-Ausdruck 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-Ausdruck 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.

definiert in Header <new>

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.

Speicheranforderungsfunktion
(Funktion) [edit]
Speicherfreigabefunktion
(Funktion) [edit]
gibt den aktuellen Funktionszeiger auf die Allokationsfunktion zurück
(Funktion) [edit]
registriert einen neuen Funktionszeiger auf die Allokationsfunktion
(Funktion) [edit]

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.

Ausnahme bei Fehlschlag der Speicherzuweisung
(Klasse) [edit]
Ausnahme bei ungültiger Arraylänge bei der Zuweisung
(Klasse) [edit]
Marker, um eine Allokationsfunktion auszuwählen, die keine Ausnahmen auslöst
(Klasse) [edit]

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.

Typ des Funktionszeiger für new
(typedef) [edit]

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.

ein Objekt vom Typ nothrow_t zur Verwendung bei der Auswahl einer Allokationsfunktion, die keine Ausnahmen auslöst.
(konstanten) [edit]