19
General utilities library
[utilities]
19.11
Smart pointers
[smartptr]
19.11.3
Class template
shared_ptr
[util.smartptr.shared]
19.11.3.8
Specialized algorithms
[util.smartptr.shared.spec]
🔗
template<class T> void swap(shared_ptr<T>& a, shared_ptr<T>& b) noexcept;
1
#
Effects:
Equivalent to
a.swap(b)
.