Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/string/basic string/capacity"

From cppreference.com
< cpp‎ | string‎ | basic string
m (Text replace - "{{complex constant}}" to "Constant")
m (Text replace - "{{param none}}" to "(none)")
Line 8: Line 8:
  
 
===Parameters===
 
===Parameters===
{{param none}}
+
(none)
  
 
===Return value===
 
===Return value===

Revision as of 13:00, 11 October 2011

Template:cpp/string/basic string/sidebar

size_type capacity() const;

Returns the number of characters that the string has currently allocated space for.

Contents

Parameters

(none)

Return value

capacity of the currently allocated storage

Complexity

Constant

See also

Template:cpp/string/basic string/dcl list sizeTemplate:cpp/string/basic string/dcl list reserve