std::weak_ptr::reset

From cppreference.com
< cpp‎ | memory‎ | weak ptr
 
 
 
Dynamic memory management
Uninitialized storage
(C++17)
(deprecated since c++17)
(deprecated since c++17)
(deprecated since c++17)
Garbage collection support
Miscellaneous
(C++11)
(C++11)
C Library
Low level memory management
 
 
void reset();
(since C++11)

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

Parameters

(none)

Return value

(none)

Exceptions

noexcept specification:  
noexcept