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/shared_ptr.html below:

std::experimental::shared_ptr - cppreference.com

std::experimental::shared_ptr is a modified version of std::shared_ptr that adds support for arrays.

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.

destructs the owned object if no more shared_ptrs link to it
(public member function of std::shared_ptr<T>) [edit] assigns the shared_ptr
(public member function of std::shared_ptr<T>) [edit] Modifiers replaces the managed object
(public member function of std::shared_ptr<T>) [edit] swaps the managed objects
(public member function of std::shared_ptr<T>) [edit] Observers returns the number of shared_ptr objects referring to the same managed object
(public member function of std::shared_ptr<T>) [edit] checks whether the managed object is managed only by the current shared_ptr object
(public member function of std::shared_ptr<T>) [edit] checks if the stored pointer is not null
(public member function of std::shared_ptr<T>) [edit] provides owner-based ordering of shared pointers
(public member function of std::shared_ptr<T>) [edit] Non-member functions

These non-member functions are declared in the std::experimental namespace, and work with std::experimental::shared_ptr rather than std::shared_ptr, but otherwise behaves identically to the corresponding C++14 function.

Helper class templates

These class templates are declared in the std::experimental namespace, and work with std::experimental::shared_ptr and std::experimental::weak_ptr rather than std::shared_ptr and std::weak_ptr, but otherwise behaves identically to the corresponding C++14 class template.

provides mixed-type owner-based ordering of shared and weak pointers
(class template) [edit] allows an object to create a shared_ptr referring to itself
(class template) [edit]

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