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

来自cppreference.com
< cpp‎ | string‎ | basic string
(1个修订: Translate from the English version)
 
(未显示5个用户的12个中间版本)
第1行: 第1行:
{{tr_note}}
+
{{cpp/string/basic_string/title|clear}}
{{cpp/string/basic_string/title | clear}}
+
 
{{cpp/string/basic_string/navbar}}
 
{{cpp/string/basic_string/navbar}}
{{ddcl |  
+
{{|
 
void clear();
 
void clear();
 
}}
 
}}
  
Removes all characters from the string. The allocated memory will not be released, effectively leaving the {{rlpt|capacity}} of the string unchanged. The past-the-end iterators are not invalidated.
+
{{|}}
  
===。参数。===
+
  。
{{tr|。 (无) |(none)}}
+
  
===
+
=== ===
返回值。===
+
 (无)
{{tr|。 (无) 。|(none)}}
+
  
=== 。复杂性。===
+
=== ===
linear in the size of the string.
+
  
=== 。另请参阅。===
+
=== ===
{{dcl list begin}}
+
{{}} {{|}} {{}}
{{dcl list template | cpp/string/basic_string/dcl list erase}}
+
{{dcl list end}}
+
  
[[ja:cpp/string/basic string/clear]]
+
[[pl:cpp/string/basic string/clear]]
+
[[pt:cpp/string/basic string/clear]]
+
 
[[ru:cpp/string/basic string/clear]]
+
 +
 +
 +
 +
 +
string
 +
 
 +
 +
 +
:string
 +
:string
 +
 
 +
clear
 +
 +
 +
:
 +
 +
 +
 +
 +
 +
 
 +
 +
 +
cpp/string//
 +
 +
 
 +

2024年10月21日 (一) 04:00的最后版本