dynarray

Why both runtime-sized arrays and std::dynarray in C++14?

不羁的心 提交于 2019-11-29 02:48:09
Draft C++14 includes both runtime-sized arrays and the std::dynarray container. From what I can tell, the only real difference between the two is that std::dynarray has an STL interface (e.g., begin , end , size , etc.), while runtime-sized arrays do not. So why does C++14 need them both? I understand that runtime-sized arrays are part of the core language, while std::dynarray is part of the standard library, but the proposal for std::dynarray makes clear that the authors expect compilers, in many cases, to offer special support for std::dynarray so that it can be as efficient as possible, i.e

What is the status on dynarrays?

狂风中的少年 提交于 2019-11-28 11:28:46
gcc 4.9 now has support for n3696 (Runtime-sized arrays with automatic storage duration) . n3662 says: In N3497 Runtime-sized arrays with automatic storage duration, Jens Maurer proposes arrays with runtime bound. These arrays are to std::dynarray as normal fixed-size arrays are to std::array. In this mailing list , Jonathan Wakely says: We should add a C++14 status table to the manual but in the meantime here's a quick summary of the library status. ... These ones are missing: N3672 A proposal to add a utility class to represent optional objects N3655 TransformationTraits Redux N3662 C++

Why both runtime-sized arrays and std::dynarray in C++14?

安稳与你 提交于 2019-11-27 17:05:40
问题 Draft C++14 includes both runtime-sized arrays and the std::dynarray container. From what I can tell, the only real difference between the two is that std::dynarray has an STL interface (e.g., begin , end , size , etc.), while runtime-sized arrays do not. So why does C++14 need them both? I understand that runtime-sized arrays are part of the core language, while std::dynarray is part of the standard library, but the proposal for std::dynarray makes clear that the authors expect compilers, in

What is the status on dynarrays?

耗尽温柔 提交于 2019-11-27 06:13:03
问题 gcc 4.9 now has support for n3696 (Runtime-sized arrays with automatic storage duration). n3662 says: In N3497 Runtime-sized arrays with automatic storage duration, Jens Maurer proposes arrays with runtime bound. These arrays are to std::dynarray as normal fixed-size arrays are to std::array. In this mailing list, Jonathan Wakely says: We should add a C++14 status table to the manual but in the meantime here's a quick summary of the library status. ... These ones are missing: N3672 A proposal