This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++11 status.

### 1516. No specification for which header contains `auto_ptr`

Section: 99 [depr.auto.ptr] Status: C++11 Submitter: BSI Opened: 2010-08-25 Last modified: 2016-01-28

Priority: Not Prioritized

View all issues with C++11 status.

Discussion:

Addresses GB-142

`auto_ptr` does not appear in the `<memory>` synopsis and [depr.auto.ptr] doesn't say which header declares it. Conversely, the deprecated binders `bind1st` etc. are in the `<functional>` synopsis, this is inconsistent

Either `auto_ptr` should be declared in the `<memory>` synopsis, or the deprecated binders should be removed from the `<functional>` synopsis and appendix D should say which header declares the binders and `auto_ptr`.

[ Post-Rapperswil ]

> Moved to Tentatively Ready after 5 positive votes on c++std-lib.

[ Adopted at 2010-11 Batavia ]

Proposed resolution:

Add the following lines to the synopsis of header `<memory>` in [memory]/1:

>     // [depr.auto.ptr], Class auto_ptr (deprecated):
>     template <class X> class auto_ptr;