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)