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 an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

dynamic_vector_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 vector by resizing the vector object. If n is greater than the current size of the vector, the vector is emptied.


PrevUpHomeNext