std::basic_string<CharT,Traits,Allocator>::clear
来自cppreference.com
![]() |
该页由英文版维基使用谷歌翻译机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击此处。 |
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.
另请参阅
移除字符 (公开成员函数) |