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