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 for the latest Boost documentation.
PrevUpHomeNext
static_buffer::reset

Reset the pointed-to buffer.

Synopsis
void
reset(
    void* p,
    std::size_t size);
Description

This function resets the internal state to the buffer provided. All input and output sequences are invalidated. This function allows the derived class to construct its members before initializing the static buffer.

Parameters

Name

Description

p

A pointer to valid storage of at least n bytes.

size

The number of valid bytes pointed to by p.


PrevUpHomeNext