“cpp/string/basic string/clear”的版本间的差异

来自cppreference.com
< cpp‎ | string‎ | basic string
(Translated from the English version using Google Translate)
 
P12讨论 | 贡献
(1个修订: Translate from the English version)

2012年10月25日 (四) 16:34的版本

 
 
 
std::basic_string
 
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.

。参数。

。 (无)。
原文:
(none)
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

===。 返回值。===

。 (无)。
原文:
(none)
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

。复杂性。

linear in the size of the string.

。另请参阅。

Template:cpp/string/basic string/dcl list erase