: set, map, multiset and multimap are all associative containers. But
: what does the word "associative" have to do with these 4 containers?
Good question
I think that the name comes from the fact that each element stored
within the container is "associated" with a key, from the element
can be retrieved.
Of course, set and multiset do not explicitly store additional data
along with the key itself - they're therefore a bit of a degenerate
case. Yet you will often seen std::set used with an element type that
stores more data than the key itself, and a custom Comparator.