How to create a dynamically allocated array in Ada?

梦想的初衷 提交于 2019-12-13 08:02:52

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!