Low level memory management
Материал из 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. |
новое выражение это единственный способ создать объект или массив объектов с динамическими срок хранения, то есть, со сроком службы не ограничивается сфера, в которой оно создано. Новое выражение получает хранения по телефону распределения функций. Удалить выражения разрушает наиболее производный объект или массив создается новое выражение и вызывает освобождение функции. Распределение по умолчанию и освобождение функции, наряду с соответствующими функциями, типов и объектов, которые объявлены в заголовке
<new>. Original:
The новое выражение 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 Удалить выражения 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.
| Определено в файле <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. | |
| Распределение функций 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. (функция) | |
| освобождение функций 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. (функция) | |
| (C++11) |
получает текущую новый обработчик 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. (функция) |
| регистрирует новый обработчик 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. (функция) | |
Original: Classes The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| исключение, когда на выделение памяти 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. (класс) | |
| (C++11) |
исключение о выделении массива с недопустимой длины 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. (класс) |
| тег типа используются для выбора не-метание' распределение функций 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. (класс) | |
Original: Types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| указатель на функцию типа нового обработчика 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. (определение типа) | |
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_t используется для выбора не-метанием' распределение функций 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. (константа) | |