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.

1306. pointer and const_pointer for <array>

Section: 23.3.3 [array] Status: C++11 Submitter: Nicolai Josuttis Opened: 2010-01-24 Last modified: 2016-01-28

Priority: Not Prioritized

View all other issues in [array].

View all issues with C++11 status.

Discussion:

Class <array> is the only sequence container class that has no types pointer and const_pointer defined. You might argue that this makes no sense because there is no allocator support, but on the other hand, types reference and const_reference are defined for array.

[ 2010-02-11 Moved to Tentatively Ready after 6 positive votes on c++std-lib. ]

Proposed resolution:

Add to Class template array 23.3.3 [array]:

namespace std {
  template <class T, size_t N >
  struct array {
    ...
    typedef T value_type;
    typedef T * pointer;
    typedef const T * const_pointer;
    ...
  };
}