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 develop branch, built from commit 09fbc2c975.
PrevUpHomeNext
static_buffer::commit

Append writable bytes to the readable bytes.

Synopsis
void
commit(
    std::size_t n);
Description

Appends n bytes from the start of the writable bytes to the end of the readable bytes. The remainder of the writable bytes are discarded. If n is greater than the number of writable bytes, all writable bytes are appended to the readable bytes.

All buffers sequences previously obtained using data or prepare are invalidated.

Parameters

Name

Description

n

The number of bytes to append. If this number is greater than the number of writable bytes, all writable bytes are appended.

Exception Safety

No-throw guarantee.


PrevUpHomeNext