Boost C++ Libraries Home Libraries People FAQ More

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->[link json.ref.boost__json__serializer.done `done`]() == false
Effects
return this->[link json.ref.boost__json__serializer.read `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