...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Serialize array
to an output stream.
Defined in header <boost/json/array.hpp>
std::ostream& operator<<( std::ostream& os, array const& arr);
This function serializes an array
as JSON into the output stream.
Reference to os
.
Constant or linear in the size of arr
.
Strong guarantee. Calls to memory_resource::allocate
may throw.
Name |
Description |
---|---|
|
The output stream to serialize to. |
|
The value to serialize. |
Convenience header <boost/json.hpp>