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 0f95d64ff2.
PrevUpHomeNext
basic_multi_buffer::consume

Remove bytes from beginning of the readable bytes.

Synopsis
void
consume(
    size_type n);
Description

Removes n bytes from the beginning of the readable bytes. All buffers sequences previously obtained using data or prepare are invalidated.

Parameters

Name

Description

n

The number of bytes to remove. If this number is greater than the number of readable bytes, all readable bytes are removed.

Exception Safety

No-throw guarantee.


PrevUpHomeNext