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. |
| Defined in header <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.
[编辑] 为例
| 本节是不完整的 原因: no example |
[编辑] 另请参阅
| (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. (函数) |