Dynamically increase/decrease array size

前端 未结 4 619
难免孤独
难免孤独 2021-01-05 18:49

I\'m trying to increase the size of an array dynamically. Is there any standard C or C++ function, which appends additional space at the end of an array or removes it? I kno

4条回答
  •  感动是毒
    2021-01-05 19:45

    probably you can achieve this by writing your own memory management wrapper such a way to append/release memory chunks from allocated array.

提交回复
热议问题