homebusinessblogart

C++ STL

Vector

[ | | | | =>
Iterators
Alternatively for C++11,

Deque

<= | | | | =>
Implementation similar to vector

List

[ ] <-> [ ] <-> [ ]
Implementation
Find
Insert
Splice: Copies elements from list2 (from itr_a to itr_b) to list1 at itr

Array

Thin layer around the naked array.
Limitations
Usage

Set

Do not use sets for simpler problems as insertion takes time and will cause performance issues.

Insert via hint.
'itr' is hint. O(log(n)) => O(1). The better the hint, the better the performance.
Erase

Multiset

Map

Implementation
Insertion

Multimap

Resources