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
)
.