| Defined in header <experimental/memory>
|
||
| template< class T > class shared_ptr; |
(library fundamentals TS) | |
std::experimental::shared_ptr is a modified version of std::shared_ptr that adds support for arrays.
Member types
| Member type | Definition |
element_type
|
std::remove_extent_t<T>
|
Member functions
constructs new shared_ptr (public member function) | |
Observers | |
| returns the stored pointer (public member function) | |
| dereferences the stored pointer (public member function) | |
| provides index access to the array (public member function) | |
Non-member functions
applies static_cast, dynamic_cast, const_cast, or reinterpret_cast to the stored pointer (function template) |
Helper classes
| hash support for std::experimental::shared_ptr (class template specialization) |
Example
This section is incomplete
Reason: no example
Reason: no example
Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.