|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
启用从this创建共享指针的基类 更多...
#include <shared_ptr.hpp>
Protected 成员函数 | |
| enable_shared_from () noexcept | |
| 构造函数 | |
| shared_ptr< T > | shared_from_this () |
| 获取指向自身的共享指针 | |
| shared_ptr< const T > | shared_from_this () const |
| 获取指向自身的常量共享指针 | |
启用从this创建共享指针的基类
| T | 派生类类型 |
允许在类的成员函数中安全地获取指向自身的共享智能指针。
在文件 shared_ptr.hpp 第 713 行定义.
|
inlineprotected |
获取指向自身的共享指针
| memory_exception | 如果对象不由shared_ptr管理 |
在文件 shared_ptr.hpp 第 740 行定义.
引用了 is_base_of_v.
|
inlineprotected |
获取指向自身的常量共享指针
| memory_exception | 如果对象不由shared_ptr管理 |
在文件 shared_ptr.hpp 第 754 行定义.
引用了 is_base_of_v.