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

519. Data() undocumented

Section: 26.3.7 [array], 99 [tr.array.array] Status: CD1 Submitter: Pete Becker Opened: 2005-07-03 Last modified: 2017-02-03

Priority: Not Prioritized

View all other issues in [array].

View all issues with CD1 status.


array<>::data() is present in the class synopsis, but not documented.

Proposed resolution:

Add a new section, after

T*       data()
const T* data() const;

Returns: elems.

Change to:

In the case where N == 0, begin() == end(). The return value of data() is unspecified.