Difference between revisions of "cpp/string/basic string/resize"
From cppreference.com
< cpp | string | basic string
m (r2.7.3) (Robot: Adding de, es, fr, it, zh) |
m (Shorten template names. Use {{lc}} where appropriate.) |
||
Line 1: | Line 1: | ||
{{cpp/string/basic_string/title | resize}} | {{cpp/string/basic_string/title | resize}} | ||
{{cpp/string/basic_string/navbar}} | {{cpp/string/basic_string/navbar}} | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| num=1 | |
void resize( size_type count ); | void resize( size_type count ); | ||
}} | }} | ||
− | {{ | + | {{| num=2 | |
void resize( size_type count, CharT ch ); | void resize( size_type count, CharT ch ); | ||
}} | }} | ||
− | {{ | + | {{end}} |
Resizes the string to contain {{tt|count}} characters. | Resizes the string to contain {{tt|count}} characters. | ||
Line 20: | Line 20: | ||
===Parameters=== | ===Parameters=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| count | new size of the string}} |
− | {{ | + | {{| ch | character to initialize the new characters with }} |
− | {{ | + | {{end}} |
===Return value=== | ===Return value=== | ||
Line 34: | Line 34: | ||
===See also=== | ===See also=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/string/basic_string/dcl list size}} |
− | {{ | + | {{end}} |
[[de:cpp/string/basic string/resize]] | [[de:cpp/string/basic string/resize]] |