...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Serialize an element to an output stream.
Defined in header <boost/json/serialize.hpp>
std::ostream& operator<<( std::ostream& os, string const& t);
This function serializes the specified element as JSON into the output stream.
os
.
Constant or linear in the size of t
.
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>