difference betwen vector/list
Whats the actual difference betwen vector and list?
When should I use each of them?
As I remember I read somewhere that I should use vector when I want to access elements/objects in random order (in this case std::vector should be faster than std::list)?
Are there any other rules when to use each?
I use my container to store loads of data which is mostly accessed at the beginning or end of container.. Should I go for the list in this case for better preformance?
Thanks for help!