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