std::unique_ptr::swap
From cppreference.com
                    
                                        
                    < cpp | memory | unique ptr
                    
                                                            
                    |   void swap(unique_ptr& other);  | 
(since C++11) | |
Swaps the managed objects and associated deleters with another unique_ptr object other.
Contents | 
[edit] Parameters
| other | - | another unique_ptr object to swap the managed object and the deleter with | 
[edit] Return value
(none)
[edit] Exceptions
[edit] Example
| This section is incomplete Reason: no example  |