I need to use an user defined number of elements throughout my program. That means I need to new up new instances of that data structure(s) I'm using. The user can add and remove instance through the UI displayed on a LCD.
So, I need the new and delete operators but also something that will dynamically track a collection or list of object references. First question is of course:
Is there an existing (linked) list or vector or collection class that I could use?
If not so, I should write one myself and should I favor small but fragmented memory allocation using a linked list or should I favor re-allocations of continues memory blocks with a collection (basically a dynamic array)?
If there are any other suggestions you might give concerning dynamic memory management, please...