std::weak_ptr<T>::swap (3) - Linux Manuals

std::weak_ptr<T>::swap: std::weak_ptr<T>::swap

NAME

std::weak_ptr<T>::swap - std::weak_ptr<T>::swap

Synopsis


void swap( weak_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)