Hello C++ Gurus,
I have been using stl vector a lot, and recently I asked this question to myself,,, "How is stl vector implemented"
I had two options:-
1) Linked list:- and then making the api to feel like random access (overloading [])
2) using new for e.g. DATA *temp = new DATA[20]:- I believe they do sth like this but then it raise one more question, do they always allocate a maximum (u_int32_t) storage to give random access(this is inefficient in terms of memory).
3) Or is there sth else that I should be aware of.
Thanks for taking your time and clearing my doubt,, Thanks Arun