A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/string/basic_string/../../header/../experimental/weak_ptr.html below:

std::experimental::weak_ptr - cppreference.com

std::experimental::weak_ptr

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.

[edit] Member types [edit] Member functions 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.

destroys a weak_ptr
(public member function of std::weak_ptr<T>) [edit] assigns the weak_ptr
(public member function of std::weak_ptr<T>) [edit] Modifiers releases the ownership of the managed object
(public member function of std::weak_ptr<T>) [edit] swaps the managed objects
(public member function of std::weak_ptr<T>) [edit] Observers returns the number of shared_ptr objects that manage the object
(public member function of std::weak_ptr<T>) [edit] checks whether the referenced object was already deleted
(public member function of std::weak_ptr<T>) [edit] creates a shared_ptr that manages the referenced object
(public member function of std::weak_ptr<T>) [edit] provides owner-based ordering of weak pointers
(public member function of std::weak_ptr<T>) [edit] 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.

[edit] Example

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4