size_type capacity() const;
The member function returns the storage currently allocated to hold the controlled sequence, a value at least as large as size().
size
()
See the related sample program.