C++ Language/Std/Stl/CollectionClasses/SortedCollections/Map/InsertingItems

The distinction between a map's  and   functions is the same as it was for vectors. With a map, you could also use C-array-indexing syntax, which will insert a new item if the map didn't already contain one with that key.

Additional information about inserting items into a map (includes interactive examples)