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

Assignment using the  operator will remove all existing elements.

Additional information about map assignment (includes interactive examples)