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 an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

buffers

Return an object representing a ConstBufferSequence.

Synopsis

Defined in header <boost/beast/core/ostream.hpp>

template<
    class ConstBufferSequence>
implementation-defined
buffers(
    ConstBufferSequence const& b);
Description

This function wraps a reference to a buffer sequence and permits the following operation:

Example
multi_buffer b;
...
std::cout << buffers(b.data()) << std::endl;
Parameters

Name

Description

b

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>


PrevUpHomeNext