23
General utilities library
[utilities]
23.11
Smart pointers
[smartptr]
23.11.2
Shared-ownership pointers
[util.smartptr]
23.11.2.3
Class template
weak_ptr
[util.smartptr.weak]
23.11.2.3.4
weak_ptr
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)
.