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
serializer::reset (1 of 5 overloads)

Reset the serializer for a new element.

Synopsis
void
reset(
    value const* p);
Description

This function prepares the serializer to emit a new serialized JSON representing *p. Any internally allocated memory is preserved and re-used for the new output.

Parameters

Name

Description

p

A pointer to the element to serialize. Ownership is not transferred; The caller is responsible for ensuring that the lifetime of *p extends until it is no longer needed.


PrevUpHomeNext