Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 26s8 days 9 hours 54 minutes 26 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 26s8 days 9 hours 54 minutes 26 seconds.

Sign in to watch this lesson
The STL from the Inside · 3:17
Why the vector is the default: its elements share cache lines while a list's nodes are scattered across the heap. We race them on a Mac (summing, and inserting in sorted order, where the list should win and doesn't), compare a map's red-black tree with an unordered_map's hash table, and remove a hidden allocation from string lookups with the transparent comparator std::less<>.