std::basic_string<CharT,Traits,Allocator>::capacity
From cppreference.com
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
Exceptions
(none) | (until C++11) |
noexcept specification: noexcept |
(since C++11) |
Complexity
Constant
See also
returns the number of characters (public member function) | |
reserves storage (public member function) |