std::enable_shared_from_thisallows an objecttthat is currently managed by astd::shared_ptrnamedptto safely generate additionalstd::shared_ptrinstancespt1,pt2etc. that all share ownership oftwithpt. Publicly inh
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(); ...
返回与所有指代 *this 的std::shared_ptr 共享*this 所有权的 std::shared_ptr<T>。 等效地执行 std::shared_ptr<T>(weak_this) ,其中 weak_this 是enable_shared_from_this 的私有 mutable std::weak_ptr<T> 成员。 注解只容许在先前共享的对象,即 std::shared_ptr 所管理的对象上调用 shared_from...
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 ...
cppreference.com Planned Maintenance The site will be in a temporary read-only mode in the next few weeks to facilitate some long-overdue software updates. We apologize for any inconvenience this may cause! C++ reference C++11,C++14,C++17,C++20,C++23,C++26│Compiler supportC++11,C++14,C++17...
If theasyncflag is set (i.e.policy&std::launch::async!=0), thenasyncspawns a new thread of execution as if bystd::thread(f, args...), except that if the functionfreturns a value or throws an exception, it is stored in the shared state accessible through thestd::futurethatasyncretu...
Public Member Functions inherited from booster::enable_shared_from_this< context > Friends class impl::cgi::connection Additional Inherited Members Protected Member Functions inherited from booster::enable_shared_from_this< context > Detailed Description context is a central class that holds all specific...
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 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....