stdshared_ptrswap(3)
std::shared_ptr<T>::swap - std::shared_ptr<T>::swap
Synopsis
void swap(shared_ptr &r) noexcept;
(since C++ 11)Exchanges the contents of *this and r
Parameters
r - smart pointer to exchange the contents with
Return value
(none)
Linux Manual Pages › Section 3
std::shared_ptr<T>::swap - std::shared_ptr<T>::swap
void swap(shared_ptr &r) noexcept;
(since C++ 11)Exchanges the contents of *this and r
r - smart pointer to exchange the contents with
(none)