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::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() == true

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