“cpp/string/basic string/clear”的版本间的差异
来自cppreference.com
< cpp | string | basic string
TranslationBot(讨论 | 贡献) (Translated from the English version using Google Translate) |
小 (1个修订: Translate from the English version) |
2012年10月25日 (四) 16:34的版本
![]() |
该页由英文版维基使用谷歌翻译机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击此处。 |
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.