Namespaces
Variants
Views
Actions

std::shared_ptr::swap

From cppreference.com
< cpp‎ | memory‎ | shared ptr
Revision as of 20:16, 31 May 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
 
void swap( shared_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