问题
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)
来源:https://stackoverflow.com/questions/29294854/how-to-create-a-dynamically-allocated-array-in-ada