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 develop branch, built from commit 0da16e0695.
PrevUpHomeNext
serialize_options::operator<<

Set JSON serialization options on input stream.

Synopsis

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

std::ostream&
operator<<(
    std::ostream& os,
    serialize_options const& opts);
Description

The function stores serialization options in the private storage of the stream. If the stream fails to allocate necessary private storage, badbit will be set on it.

Return Value

Reference to os.

Complexity

Amortized constant (due to potential memory allocation by the stream).

Exception Safety

Strong guarantee. The stream may throw as configured by std::ios::exceptions.

Parameters

Name

Description

os

The output stream.

opts

The options to store.

Convenience header <boost/json.hpp>


PrevUpHomeNext