[util.smartptr.weak.mod] (original) (raw)

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]

🔗

void swap(weak_ptr& r) noexcept;

1

#

Effects: Exchanges the contents of *this and r.

🔗

void reset() noexcept;

2

#

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