Possible Duplicate:
What are the Complexity guarantees of the standard containers?
From the answers to my yesterday's question std::queue<T, list<T> >::size() is slow in O(n)? I learned that my assumptions on STL container performance characteristics are not always right. Time to learn!
Do you know about any "cheat sheet" like overview about common STL (and maybe also Boost) containers like vector
, list
, deque
, map
, hash_map
/unordered_map
etc. regarding the performance characteristics (as indicated by the standard) for operations like insertion, deletion, size() etc.?