GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::enable_shared_from_this::weak_from_this(3) C++ Standard Libary std::enable_shared_from_this::weak_from_this(3)

std::enable_shared_from_this::weak_from_this - std::enable_shared_from_this::weak_from_this


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 existing
std::shared_ptr that refer to *this.


This is a copy of the private mutable weak_ptr member that is part of
enable_shared_from_this.


std::weak_ptr<T> that shares ownership of *this with pre-existing std::shared_ptrs


This section is incomplete
Reason: no example


shared_ptr smart pointer with shared object ownership semantics
(C++11) (class template)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.