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

891 B

[util.smartptr.weak.mod]

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.5 Modifiers [util.smartptr.weak.mod]

🔗

constexpr void swap(weak_ptr& r) noexcept;

1

#

Effects: Exchanges the contents of *this and r.

🔗

constexpr void reset() noexcept;

2

#

Effects: Equivalent to weak_ptr().swap(*this).