Files
cppdraft_translate/cppdraft/util/smartptr/weak/spec.md
2025-10-25 03:02:53 +03:00

682 B

[util.smartptr.weak.spec]

20 Memory management library [mem]

20.3 Smart pointers [smartptr]

20.3.2 Shared-ownership pointers [util.sharedptr]

20.3.2.3 Class template weak_ptr [util.smartptr.weak]

20.3.2.3.7 Specialized algorithms [util.smartptr.weak.spec]

🔗

template<class T> constexpr void swap(weak_ptr<T>& a, weak_ptr<T>& b) noexcept;

1

#

Effects: Equivalent to a.swap(b).