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 e83975fcee.
PrevUpHomeNext

dynamic_string_buffer::shrink

DynamicBuffer_v2: Shrink the underlying memory by the specified number of bytes.

void shrink(
    std::size_t n);

Erases n bytes from the end of the string by resizing the basic_string object. If n is greater than the current size of the string, the string is emptied.


PrevUpHomeNext