Low level memory management
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.
You can help to correct and verify the translation. Click here for instructions.
