vector vs. list in STL

I noticed in Effective STL that

vector is the type of sequence that
should be used by default.

What’s does it mean? It seems that ignore the efficiency vector can do anything.

Could anybody offer me a scenario where vector is not a feasible option but list must be used?

17 Answers
17

Leave a Comment