Okay I though multimap was to map multiple values to one key and map was used to map 1 key to 1 value.
It seems that is not true.
Infact as I've been playing with map and multimap it seems you can insert multiple values for 1 key in both of them...
cppreference.com shows that maps are for key/value pairs and that multimap allows duplicate keys...
In both map and multimaps if I insert(1,2) then insert(1,3) i can get access to both 2,3 via 1




Reply With Quote