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