cppreference.com
>
C++ Maps
>
size
size
Syntax:
size_type
size() const;
The size() function returns the number of elements in the current map.
Related topics:
(C++ Strings)
capacity
empty
(C++ Strings)
length
max_size
(C++ Strings)
resize