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 master branch, built from commit 0bd9e66d9e.
PrevUpHomeNext
stream_parser::reset

Reset the parser for a new JSON text.

Synopsis
void
reset(
    storage_ptr sp = {}) noexcept;
Description

This function is used to reset the parser to prepare it for parsing a new complete JSON text. Any previous partial results are destroyed.

Complexity

Constant or linear in the size of any previous partial parsing results.

Exception Safety

No-throw guarantee.

Parameters

Name

Description

sp

A pointer to the boost::container::pmr::memory_resource to use for the resulting value. The parser will acquire shared ownership.


PrevUpHomeNext