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

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


constexpr weak_ptr() noexcept; (1) (library fundamentals
TS)
weak_ptr( const weak_ptr& r ) noexcept; (2) (library fundamentals
TS)
template< class Y > (2) (library fundamentals
weak_ptr( const weak_ptr<Y>& r ) noexcept; TS)
template< class Y > (library fundamentals
weak_ptr( const std::experimental::shared_ptr<Y>& r ) (2) TS)
noexcept;
weak_ptr( weak_ptr&& r ) noexcept; (3) (library fundamentals
TS)
template< class Y > (3) (library fundamentals
weak_ptr( weak_ptr<Y>&& r ) noexcept; TS)


Constructs a new weak_ptr that potentially shares an object with r.


1) Default constructor. Constructs empty weak_ptr.
2) Constructs new weak_ptr which shares an object managed by r. If r manages no
object, *this manages no object too. The templated overloads don't participate in
overload resolution unless either Y* is implicitly convertible to T*, or Y is the
type "array of N U" for some type U and some number N, and T is the type "array of
unknown bound of (possibly cv-qualified) U".
3) Move constructors. Moves a weak_ptr instance from r into *this. After this, r is
empty and r.use_count()==0. The templated overload doesn't participate in overload
resolution unless either Y* is implicitly convertible to T*, or Y is the type "array
of N U" for some type U and some number N, and T is the type "array of unknown bound
of (possibly cv-qualified) U".


r - a std::experimental::shared_ptr or std::experimental::weak_ptr that will be
viewed by this std::experimental::weak_ptr


noexcept specification:
noexcept


This section is incomplete
Reason: no example


constructor creates a new weak_ptr
(public member function of std::weak_ptr<T>)
operator= assigns the weak_ptr
(public member function of std::weak_ptr<T>)

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.