Created on 2019-06-13.00:00:00, last changed 2019-07-23.15:26:26.
This wording is relative to N4810.
Modify [container.requirements.general], Table 62 — "Container requirements", as indicated (This table can be identified by the "section" identifier [tab:container.req] in the next working draft):
Table 62 — Container requirements Expression Return type Operational
Complexity […] X u;
Those entries marked "(Note A)" or "(Note B)" have linear complexity for array and have constant complexity for all other standard containers.
Modify [array.overview] as indicated:
-2- An array is an aggregate ([dcl.init.aggr]) that can be list-initialized with up to N elements whose types are convertible to T.-3- An array satisfies all of the requirements of a container and of a reversible container ([container.requirements]), except that a default constructed array object is not empty and
thatswap does nothave constantcomplexity. An array satisfies some of the requirements of a sequence container ([sequence.reqmts]). Descriptions are provided here only for operations on array that are not described in one of these tables and for operations where there is additional semantic information.
[ 2019-07 Issue Prioritiztion ]
Priority to 3 after discussion on the reflector.
The requirements specified in [array.overview] p3 are incorrect; namely:
A default constructed array<T, N> where 0 < N has linear, not constant complexity.
A default constructed array<T, 0> is empty and has constant complexity.
|2019-07-23 15:26:26||admin||set||messages: + msg10501|
|2019-06-16 09:24:23||admin||set||messages: + msg10446|