What is the difference between C++ Map and Multimap
-
The multimap stores pairs of (key,value) where both key and value can appear several times
-
The map > will only store each value once for a specific key. To do that, it will have to be able to compare the values, not just the keys
-
A std::map is an associative container, that allows you to have a unique key associated with your type value
Example of Map in C++
#include
#include