How to create a dynamically allocated array in Ada

2019-09-20 16:54发布

问题:

As the questions says, I want to create a dynamically allocated array in Ada. Something like C++ std::vector ie., I don't want to store the length of the array in a separate variable like it is done here. As Ada supports generics, is it possible to create a std::vector like functionality in Ada?

回答1:

The Standard Libraries includes Ada.Containers.Vectors (RM A.18.2)



标签: ada