Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit 7789ef3d8d.
PrevUpHomeNext
string::grow

Increase size without changing capacity.

Synopsis
void
grow(
    std::size_t n);
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.


PrevUpHomeNext