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
basic_flat_buffer::commit

Move bytes from the output sequence to the input sequence.

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

Name

Description

n

The number of bytes to move. If this is larger than the number of bytes in the output sequences, then the entire output sequences is moved.

Remarks

All previous buffers sequences obtained from calls to basic_flat_buffer::data or basic_flat_buffer::prepare are invalidated.


PrevUpHomeNext