23 General utilities library [utilities]

23.11 Smart pointers [smartptr]

23.11.3 Class template shared_­ptr [util.smartptr.shared]

23.11.3.8 shared_­ptr specialized algorithms [util.smartptr.shared.spec]

template<class T> void swap(shared_ptr<T>& a, shared_ptr<T>& b) noexcept;
Effects: Equivalent to a.swap(b).