Parameters
noneReturn Value
The maximum number of characters a string object can have as its content.size_t is an unsigned integral type.
Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
A possible output for this program could be:
size: 11 length: 11 capacity: 15 max_size: 4294967291 |
Basic template member declaration
( basic_string<charT,traits,Allocator> )| 1 2 |
|
See also
| string::capacity | Return size of allocated storage (public member function) |
| string::size | Return length of string (public member function) |
| string::resize | Resize string (public member function) |
