std::basic_string::clear
来自cppreference.com
< cpp | string | basic string
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
void clear(); |
||
Removes all characters from the string. The allocated memory will not be released, effectively leaving the capacity
of the string unchanged. The past-the-end iterators are not invalidated.
目录 |
[编辑] 参数
(无)
[编辑] 返回值
(无)
[编辑] 复杂度
linear in the size of the string.
[编辑] 另请参阅
removes characters (公共成员函数) |