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

The  function reports how many items are in the map. The  function reports how many items are in the map having that particular key (0 or 1 of them).

Additional information about map size (includes interactive examples)