std::experimental::weak_ptr (3) - Linux Manuals
std::experimental::weak_ptr: std::experimental::weak_ptr
NAME
std::experimental::weak_ptr - std::experimental::weak_ptr
Synopsis
Defined in header <experimental/memory>
template< class T > class weak_ptr; (library fundamentals TS)
std::experimental::weak_ptr is a modified version of std::weak_ptr that interoperates with std::experimental::shared_ptr and has support for arrays.
Member types
Member type Definition
element_type std::remove_extent_t<T>
Member functions
constructor (public member function)
Members and non-members identical to std::weak_ptr
Member functions
The following member functions work with std::experimental::shared_ptr instead of std::shared_ptr and std::experimental::weak_ptr instead of std::weak_ptr. The behavior is otherwise identical.
destructor (public member function of std::weak_ptr<T>)
operator= (public member function of std::weak_ptr<T>)
Modifiers
reset (public member function of std::weak_ptr<T>)
swap (public member function of std::weak_ptr<T>)
Observers
use_count (public member function of std::weak_ptr<T>)
expired (public member function of std::weak_ptr<T>)
lock (public member function of std::weak_ptr<T>)
owner_before (public member function of std::weak_ptr<T>)
Non-member functions
This non-member function is declared in the std::experimental namespace, and work with std::experimental::weak_ptr rather than std::weak_ptr, but otherwise behaves identically to the corresponding C++14 function.
std::swap(std::weak_ptr) specializes the std::swap algorithm
(C++11)
Example
This section is incomplete
Reason: no example