std::weak_ptr::reset

From cppreference.com
< cpplrm; | memorylrm; | weak ptr
Dynamic memory management
Uninitialized storage
(C++17)
Garbage collection support
Miscellaneous
(C++20)
(C++11)
(C++11)
C Library
Low level memory management
void reset() noexcept;
(since C++11)

Releases the reference to the managed object. After the call *this manages no object.

Parameters

(none)

Return value

(none)