Parameters
noneReturn Value
The number of elements that conform the map's content.Member type size_type is an unsigned integral type.
Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
Output:
mymap.size() is 3 |
Complexity
Constant.See also
| map::max_size | Return maximum size (public member function) |
| map::empty | Test whether container is empty (public member function) |
