...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Return an object representing a ConstBufferSequence.
Defined in header <boost/beast/core/ostream.hpp>
template< class ConstBufferSequence> implementation-defined buffers( ConstBufferSequence const& b);
This function wraps a reference to a buffer sequence and permits the following operation:
operator<<
to std::ostream
. No character translation is
performed; unprintable and null characters will be transferred as-is
to the output stream.
multi_buffer b; ... std::cout << buffers(b.data()) << std::endl;
Name |
Description |
---|---|
|
An object meeting the requirements of ConstBufferSequence to be streamed. The implementation will make a copy of this object. Ownership of the underlying memory is not transferred, the application is still responsible for managing its lifetime. |
Convenience header <boost/beast/core.hpp>