FreeBSD Manual Pages
std::enable...k_from_this(3) C++ Standard Libary std::enable...k_from_this(3) NAME std::enable_shared_from_this::weak_from_this - std::en- able_shared_from_this::weak_from_this Synopsis std::weak_ptr<T> weak_from_this() noexcept; (1) (since C++17) std::weak_ptr<T const> weak_from_this() const noexcept; (2) (since C++17) Returns a std::weak_ptr<T> that tracks ownership of *this by all ex- isting std::shared_ptr that refer to *this. Return value std::weak_ptr<T> that shares ownership of *this with pre-existing std::shared_ptrs. Notes weak_from_this copies the exposition only weak_ptr member that is part of enable_shared_from_this. Feature-test macro Value Std Feature __cpp_lib_enable_shared_from_this 201603L (C++17) std::en- able_shared_from_this::weak_from_this Example This section is incomplete Reason: no example See also shared_ptr smart pointer with shared object ownership semantics (C++11) (class template) Category: * Todo no example http://cppreference.com 2024.06.10 std::enable...k_from_this(3)
NAME | Synopsis | Return value | Notes | Example | See also | Category:
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::enable_shared_from_this::weak_from_this&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>
