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