std::basic_string::size, std::basic_string::length
来自cppreference.com
< cpp | string | basic string
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| size_type size() const; |
||
| size_type length() const; |
||
返回的字符串中的字符数,即std::distance(begin(), end()).
原文:
Returns the number of characters in the string, i.e. std::distance(begin(), end()).
目录 |
[编辑] 参数
[编辑] 返回值
[编辑] 复杂度
[编辑] 另请参阅
| (公开成员函数) | |
| (公开成员函数) |