Namespaces
Variants
Views
Actions

std::weak_ptr::swap

From cppreference.com
 
 
 
 
 
void swap( weak_ptr& r );

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
  (since C++11)