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