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 e83975fcee.
PrevUpHomeNext
serializer::read (2 of 2 overloads)

Read the next buffer of serialized JSON.

Synopsis
template<
    std::size_t N>
string_view
read(
    char(&) dest [N]);
Description

This function allows reading into a character array, with a deduced maximum size.

Preconditions
this->done() == false
Effects
return this->read( dest, N );
Complexity

Linear in N.

Exception Safety

Basic guarantee. Calls to memory_resource::allocate may throw.

Return Value

A string_view containing the characters written, which may be less than size.

Parameters

Name

Description

dest

The character array to write to.


PrevUpHomeNext