##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::weak_ptr::reset

From cppreference.com
< cpp‎ | memory‎ | weak ptr

void reset(); |  | (since C++11)

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

### [edit] Parameters

(none)

### [edit] Return value

(none)

### [edit] Exceptions

`noexcept` specification:
noexcept
Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/memory/weak_ptr/reset&oldid=63356"