# std::auto_ptr<T>::get

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

Returns the pointer that is held by *this.

## Official Specification Summary (cppreference)

```cpp
T* get() const throw(); // (deprecated in C++11) (removed in C++17)
```

Returns the pointer that is held by `*this`.

### Parameters

(none)

### Return value

The pointer held by `*this`.

### See also

- [`operator*`](https://en.cppreference.com/w/cpp/memory/auto_ptr/operator*), [`operator->`](https://en.cppreference.com/w/cpp/memory/auto_ptr/operator*): accesses the managed object (public member function)

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