...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Increase size without changing capacity.
void
grow(
std::size_t
n) noexcept;
This increases the size of the string by n
characters, adjusting the position of the terminating null for the new
size. The new characters remain uninitialized. This function may be used
to append characters directly into the storage between end()
and data() + capacity()
.
count <= capacity() - size()
Name |
Description |
---|---|
|
The amount to increase the size by. |