std::weak_ptr<T>::reset

From cppreference.com
< cpp‎ | memory‎ | 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)