basic_string::length

size_type length() const;

The member function returns the length of the controlled sequence (same as size()).