891 B
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;
Effects: Exchanges the contents of *this and r.
constexpr void reset() noexcept;
Effects: Equivalent to weak_ptr().swap(*this).