string::grow

Increase size without changing capacity.

Synopsis

void
grow(
    std::size_t n) noexcept;

Description

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().

Precondition

count <= capacity() - size()

Parameters

Name Description

n

The amount to increase the size by.