std::pointer_safety
来自cppreference.com
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <memory> 中定义
|
||
enum class pointer_safety { relaxed, |
(C++11 起) | |
The scoped enumeration type pointer_safety
lists the pointer safety modes supported by C++
[编辑] 枚举常量
pointer_safety::strict | Only safely-derived pointers (pointers to objects allocated with new or subobjects thereof) may be dereferenced or deallocated. Garbage collector may be active. |
pointer_safety::preferred | All pointers are considered valid and may be dereferenced or deallocated. A reachability-based leak detector may be active |
pointer_safety::relaxed | All pointers are considered valid and may be dereferenced or deallocated |
[编辑] 另请参阅
(C++11) |
返回当前指针安全模型 原文: returns the current pointer safety model (函数) |