Hello
I've been away from C++ for many years now, but when I did work with C++ (prior to STL) I always believed that arrays were bad and linked lists were so GOOD. Now that the STL offers dynamic resizing of arrays, what's best for the following situation:
A collection of records (objects) which are frequently added/deleted.
Is there a marked performance difference between the Array in STL and a linked list? Does the STL Array still use contiguous memory?
I've read some stuff on websites that seems to infer that only "nerdy - make it as difficult as possible" people use linkedlists, whereas the Array would do the same job, in the same time, far quicker. This is a complete turn around to what I grew up believing.
Any advice?
Kate
I've been away from C++ for many years now, but when I did work with C++ (prior to STL) I always believed that arrays were bad and linked lists were so GOOD. Now that the STL offers dynamic resizing of arrays, what's best for the following situation:
A collection of records (objects) which are frequently added/deleted.
Is there a marked performance difference between the Array in STL and a linked list? Does the STL Array still use contiguous memory?
I've read some stuff on websites that seems to infer that only "nerdy - make it as difficult as possible" people use linkedlists, whereas the Array would do the same job, in the same time, far quicker. This is a complete turn around to what I grew up believing.
Any advice?
Kate