std::enable_shared_from_this 能让它的一个已被 std::shared_ptr 类型对象 pt 管理的对象 t 安全地生成其他额外的 std::shared_ptr 实例pt1、pt2 等等,它们都与 pt 共享对象 t 的所有权。 如果类 T 公开继承了 std::enable_shared_from_this<T>,那么就会为该类 T 提供成员函数 shared_from_this。
enable_shared_from_this (C++11) 允许对象创建指代自身的shared_ptr (类模板) bad_weak_ptr (C++11) 访问指向已销毁对象的weak_ptr时抛出的异常 (类) default_delete (C++11) unique_ptr的默认删除器 (类模板) 智能指针适配器 out_ptr_t (C++23) ...
enable_shared_from_this::~enable_shared_from_this enable_shared_from_this::operator= Public member functions enable_shared_from_this::shared_from_this enable_shared_from_this::weak_from_this (C++17) std::shared_ptr<T>shared_from_this(); ...
enable_shared_from_this::shared_from_this enable_shared_from_this::weak_from_this (C++17) constexpr enable_shared_from_this() noexcept; (1) (since C++11) enable_shared_from_this( const enable_shared_from_this& other ) noexcept; (2) (since C++11) Constructs a new enable_shared_from...
#include <booster/booster/enable_shared_from_this.h>Public Member Functions shared_ptr< T > shared_from_this () shared_ptr< T const > shared_from_this () const template<class X , class Y > void _internal_accept_owner (shared_ptr< X > const *ppx, Y *py) const ...
Public Member Functions inherited frombooster::enable_shared_from_this< context > Friends classimpl::cgi::connection Additional Inherited Members Protected Member Functions inherited frombooster::enable_shared_from_this< context > Detailed Description ...
), except that if the function f returns a value or throws an exception, it is stored in the shared state accessible through the std::future that async returns to the caller. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. ...
If you aren't seeing the IntelliSense that you expect, you can troubleshoot by going to Tools > Options > Text Editor > C/C++ > Advanced and setting Enable Logging to true. To start with, try setting Logging Level to 5, and Logging Filters to 8....
If you aren't seeing the IntelliSense that you expect, you can troubleshoot by going toTools>Options>Text Editor>C/C++>Advancedand settingEnable Loggingtotrue. To start with, try settingLogging Levelto 5, andLogging Filtersto 8. Output is piped to theOutput Windowand is visible when you ...
If you aren't seeing the IntelliSense that you expect, you can troubleshoot by going to Tools > Options > Text Editor > C/C++ > Advanced and setting Enable Logging to true. To start with, try setting Logging Level to 5, and Logging Filters to 8. Output is piped to the Output Window...