|
string::lengthpublic member function
size_t length() const; Return length of string Returns a count of the number of characters in the string.string::length is an alias of string::size, returning both the exact same value. ParametersnoneReturn ValueThe number of characters that conform the string's content.size_t is an unsigned integral type. Example
Output:
Basic template member declaration( basic_string<charT,traits,Allocator> )
See also
|