Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
serializer::reset (5 of 5 overloads)

Reset the serializer for a new string.

Synopsis
void
reset(
    string_view sv);
Description

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

Parameters

Name

Description

sv

The characters representing the string. Ownership is not transferred; The caller is responsible for ensuring that the lifetime of the characters reference by sv extends until it is no longer needed.


PrevUpHomeNext