Previous: Linked lists, Up: Data structures

4.5.5 Growing array

The growing array is a dynamically allocated array structure that keeps monitoring the access and when there is a request for an index beyond the actual array size, the array is automatically resized. The file lib/garr.h can be used as a function generator. There is a support for passing growing arrays as function arguments comfortably. See lib/garr.h for details.