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 20a7dc9240.
PrevUpHomeNext
array::operator<<

Serialize array to an output stream.

Synopsis

Defined in header <boost/json/array.hpp>

friend std::ostream&
operator<<(
    std::ostream& os,
    array const& arr);
Description

This function serializes an array as JSON into the output stream.

Return Value

Reference to os.

Complexity

Constant or linear in the size of arr.

Exception Safety

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

Parameters

Name

Description

os

The output stream to serialize to.

arr

The value to serialize.

Convenience header <boost/json.hpp>


PrevUpHomeNext