Low level memory management
Aus cppreference.com
|
|
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. |
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.
| Defined in header
<new> | |
Original: Functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 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) | |
| deallocation Funktionen Original: deallocation functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
| (C++11) |
erhält die aktuelle neuen Handler Original: obtains the current new handler The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) |
| registriert einen neuen Handler Original: registers a new handler The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
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 ausgelöst, wenn die Speicherzuweisung fehlschlägt Original: exception thrown when memory allocation fails The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klasse) | |
| (C++11) |
Ausnahme auf Zuweisung von Array mit ungültige Länge geworfen Original: exception thrown on allocation of array with invalid length The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klasse) |
| Tag-Typ verwendet werden, um eine nicht-Werfen Allokationsfunktion auswählen Original: tag type used to select an non-throwing allocation function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klasse) | |
Original: Types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Funktionszeiger Typ des neuen Handler Original: function pointer type of the new handler The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) | |
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 verwendet, um eine nicht-Werfen Allokationsfunktion auswählen Original: an object of type nothrow_t used to select an non-throwing allocation function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (konstanten) | |

