Namespaces
Variants
Views
Actions

std::weak_ptr::swap

From cppreference.com
< cpp‎ | memory‎ | weak ptr
Revision as of 17:27, 26 August 2013 by P12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
 
void swap( weak_ptr& r );
(since C++11)

Exchanges the contents of *this and r

[edit] Parameters

r - smart pointer to exchange the contents with

[edit] Return value

(none)

[edit] Exceptions

noexcept specification:  
noexcept