size

Syntax:

    #include <map>
    size_type size() const;

The size() function returns the number of elements in the current map.

Related Topics: empty, max_size