Namespaces
Variants
Views
Actions

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}}
{{ddcl list begin}}
+
{{begin}}
{{ddcl list item | num=1 |
+
{{| num=1 |
 
void resize( size_type count );
 
void resize( size_type count );
 
}}
 
}}
{{ddcl list item | num=2 |
+
{{| num=2 |
 
void resize( size_type count, CharT ch );
 
void resize( size_type count, CharT ch );
 
}}
 
}}
{{ddcl list end}}
+
{{end}}
  
 
Resizes the string to contain {{tt|count}} characters.
 
Resizes the string to contain {{tt|count}} characters.
Line 20: Line 20:
 
===Parameters===
 
===Parameters===
  
{{param list begin}}
+
{{begin}}
{{param list item | count | new size of the string}}
+
{{| count | new size of the string}}
{{param list item | ch | character to initialize the new characters with }}
+
{{| ch | character to initialize the new characters with }}
{{param list end}}
+
{{end}}
  
 
===Return value===
 
===Return value===
Line 34: Line 34:
 
===See also===
 
===See also===
  
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/string/basic_string/dcl list size}}
+
{{| cpp/string/basic_string/dcl list size}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/string/basic string/resize]]
 
[[de:cpp/string/basic string/resize]]

Revision as of 20:54, 31 May 2013