Title
pointer and const_pointer for <array>
Status
c++11
Section
[array]
Submitter
Nicolai Josuttis

Created on 2010-01-24.00:00:00 last changed 153 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Add to Class template array [array]:

namespace std {
  template <class T, size_t N >
  struct array {
    ...
    typedef T value_type;
    typedef T * pointer;
    typedef const T * const_pointer;
    ...
  };
}
Date: 2010-02-11.00:00:00

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

Date: 2010-01-24.00:00:00

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.

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2010-10-21 18:28:33adminsetmessages: + msg1535
2010-10-21 18:28:33adminsetmessages: + msg1534
2010-01-24 00:00:00admincreate