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::experimental::weak_ptr(3) C++ Standard Libary std::experimental::weak_ptr(3)

std::experimental::weak_ptr - std::experimental::weak_ptr


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 type Definition
element_type std::remove_extent_t<T>

Member functions


constructor constructs new weak_ptr
(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 destroys a weak_ptr
(public member function of std::weak_ptr<T>)
operator= assigns the weak_ptr
(public member function of std::weak_ptr<T>)


reset releases the ownership of the managed object
(public member function of std::weak_ptr<T>)
swap swaps the managed objects
(public member function of std::weak_ptr<T>)


use_count returns the number of shared_ptr objects that manage the object
(public member function of std::weak_ptr<T>)
expired checks whether the referenced object was already deleted
(public member function of std::weak_ptr<T>)
lock creates a shared_ptr that manages the referenced object
(public member function of std::weak_ptr<T>)
owner_before provides owner-based ordering of weak pointers
(public member function of std::weak_ptr<T>)


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) (function template)


This section is incomplete
Reason: no example

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.