# std::auto_ptr<T>::~auto_ptr

> C++ Atlas: `cppatlas.com/w/cpp/memory/auto_ptr/~auto_ptr` | Source: https://en.cppreference.com/w/cpp/memory/auto_ptr/~auto_ptr | Domain: Memory management | Standards: C++17

Destroys the managed object. Calls delete get().

## Official Specification Summary (cppreference)

```cpp
~auto_ptr() throw(); // (deprecated in C++11) (removed in C++17)
```

Destroys the managed object. Calls `delete get()`.

---
Attribution: content from https://en.cppreference.com/w/cpp/memory/auto_ptr/~auto_ptr (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.