Note: This paper was adopted into draft C++14 on Saturday at the Bristol UK ISO C++ meeting.
A new WG21 paper is available. A copy is linked below, and the paper will also appear in the next normal WG21 mailing. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.
Document number: N3662
by Lawrence Crowl and Matt Austern
See also related paper N3662, "Runtime-Sized Arrays with Automatic Storage Duration (Revision 5)"
Instead of adopting C variable-length arrays, we propose to define a new facility for arrays where the number of elements is bound at construction. We call these dynamic arrays,
dynarray. In keeping with C++ practice, we wish to make
dynarrays usable with more than just automatic variables. But to take advantage of the efficiency stack allocation, we wish to make
dynarrayoptimizable when used as an automatic variable.