std::declare_no_pointers
Материал из 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. |
| Заголовочный файл <memory>
|
||
| void declare_no_pointers( char *p, std::size_t n ) |
(начиная с C++11) | |
Об этом сообщает сборщик мусора или течеискателя, что указанная область памяти (
n байтов, начиная с байта, на который указывает p) не содержит прослеживается указателей. Если какая-либо часть области находится в пределах выделенного объекта, весь регион, должны содержаться в тот же объект.Original:
Informs the garbage collector or leak detector that the specified memory region (
n bytes beginning at the byte pointed to by p) contains no traceable pointers. If any part of the region is within an allocated object, the entire region must be contained in the same object.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.
Содержание |
[править] Параметры
| p | - | указатель на начало диапазона
Original: pointer to the beginning of the range The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| n | - | количество байт в диапазоне
Original: the number of bytes in the range The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[править] Возвращаемое значение
(Нет)
Original:
(none)
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.
[править] Исключения
Нет
Original:
None
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.
[править] Пример
| Этот раздел не завершён Причина: нет примера |
[править] См. также
| (C++11) |
отменяет действие std::declare_no_pointers Original: cancels the effect of std::declare_no_pointers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (функция) |