C++ Reference Material
The STL Associative Containers and their Member Functions
|
member function |
map |
multimap |
set |
multiset |
| operator [ ] | Y | N | N | N |
| =, ==, !=, <, <=, >, >= | Y | Y | Y | Y |
| empty() | Y | Y | Y | Y |
| size() | Y | Y | Y | Y |
| max_size() | Y | Y | Y | Y |
| swap(otherLikeContainer) | Y | Y | Y | Y |
| begin(), end() | Y | Y | Y | Y |
| rbegin(), rend() | Y | Y | Y | Y |
| insert(val)
insert(iter, val) insert(iter, start, end) |
Y | Y | Y | Y |
| erase(iter)
erase(start, end) erase(key) |
Y | Y | Y | Y |
| clear() | Y | Y | Y | Y |
| key_comp() | Y | Y | Y | Y |
| value_comp() | Y | Y | Y | Y |
| count(key) | Y | Y | Y | Y |
| equal_range(key) | Y | Y | Y | Y |
| lower_bound(key) | Y | Y | Y | Y |
| upper_bound(key) | Y | Y | Y | Y |
| find(key) | Y | Y | Y | Y |
| get_allocator() | Y | Y | Y | Y |