std::basic_string<CharT,Traits,Allocator>::clear

来自cppreference.com
P12留言 | 贡献2012年10月25日 (四) 23:34的版本 (1个修订: Translate from the English version)

<metanoindex/>

 
 
 
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