Movatterモバイル変換


[0]ホーム

URL:



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

1306.pointer andconst_pointer for<array>

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

Priority:Not Prioritized

View all otherissues in [array].

View all issues withC++11 status.

Discussion:

Class<array> is the only sequence container class that has notypespointer andconst_pointer defined. You might argue thatthis makes no sense because there is no allocator support, but on the otherhand, typesreference andconst_reference are defined forarray.

[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;    ...  };}

[8]ページ先頭

©2009-2026 Movatter.jp