##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::auto_ptr::release

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

T* release(); |  | (deprecated)

Releases the held pointer. After the call *this holds the null pointer.

### [edit] Parameters

(none)

### [edit] Return value

get().

### [edit] Exceptions

(none)

### [edit] See also

reset | destroys the managed object (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/memory/auto_ptr/release&oldid=58302"