Namespaces
Variants

std:: undeclare_no_pointers

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
undeclare_no_pointers
(C++11) (until C++23)
(C++11) (until C++23)
定义于头文件 <memory>
void undeclare_no_pointers ( char * p, std:: size_t n ) ;
(C++11 起)
(C++23 中移除)

取消注册先前通过 std:: declare_no_pointers ( ) 注册的内存范围。

目录

参数

p - 指向先前通过 std::declare_no_pointers 注册范围起始位置的指针
n - 范围中的字节数,与先前和 std::declare_no_pointers 一起使用的值相同

返回值

(无)

异常

不抛出任何异常。

参见

(C++11) (removed in C++23)
声明某内存区域不包含可追踪指针
(函数)