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
Date: 2013-04-19
C++ Dynamic Arrays
by Lawrence Crowl and Matt Austern
See also related paper N3662, "Runtime-Sized Arrays with Automatic Storage Duration (Revision 5)"
Excerpt:
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 makedynarray
s usable with more than just automatic variables. But to take advantage of the efficiency stack allocation, we wish to makedynarray
optimizable when used as an automatic variable.
Add a Comment
Comments are closed.