weak_from_this (C++17) returns astd::weak_ptrwhich shares ownership of*this (public member function) Notes The constructors ofstd::shared_ptrdetect the presence of an unambiguous and accessible (i.e. public inh
返回与所有指代 *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...
std::enable_shared_from_this std::weak_ptr<T>weak_from_this()noexcept; (1)(since C++17) std::weak_ptr<Tconst>weak_from_this()constnoexcept; (2)(since C++17) Returns astd::weak_ptr<T>that tracks ownership of*thisby all existingstd::shared_ptrthat refer to*this. ...
#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...
This page has been machine-translated from the English version of the wiki usingGoogle Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions clickhere. ...
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....