首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::declare_no_pointers

Defined in header <memory>

?

?

void declare_no_pointers( char *p, std::size_t n );

?

(since C++11)

通知垃圾收集器或泄漏检测器指定的内存区域%28n从指向的字节开始的字节。p%29不包含可跟踪的指针。如果区域的任何部分位于已分配的对象中,则整个区域必须包含在同一个对象中。

参数

p

-

pointer to the beginning of the range

n

-

the number of bytes in the range

返回值

%280%29

例外

没有。

另见

undeclare_no_pointers (C++11)

cancels the effect of std::declare_no_pointers (function)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com