Date
2022-10-15.00:00:00
Message id
12897

Content

[ 2022-10-27; Hubert Tong comments and requests to reopen ]

This issue appears to be unresolved (should not be NAD).

As noted in [array.overview] paragraph 3, array does not meet [container.reqmts] paragraph 10. This means that array does not meet the container requirements, never mind the requirements for sequence containers or contiguous containers.

However, there is wording that claims the opposite.

[sequence.reqmts] paragraph 1:

In addition, array is provided as a sequence container which provides limited sequence operations because it has a fixed number of elements.

(Perhaps the above should be worded with "except".)

[sequences.general] paragraph 1:

The headers <array> […] define class templates that meet the requirements for sequence containers.

[array.overview] paragraph 1:

[…] An array is a contiguous container ([container.requirements.general]).

In this comment, Casey suggests that the requirements be changed so that array does meet the requirements.