Beast Logo

PrevUpHomeNext

buffer_cat

Concatenate 2 or more buffer sequences.

template<
    class... BufferSequence>
buffers_view< BufferSequence... >
buffer_cat(
    BufferSequence const&... buffers);

This function returns a constant or mutable buffer sequence which, when iterated, efficiently concatenates the input buffer sequences. Copies of the arguments passed will be made; however, the returned object does not take ownership of the underlying memory. The application is still responsible for managing the lifetime of the referenced memory.

Parameters

buffers

The list of buffer sequences to concatenate.

Return Value

A new buffer sequence that represents the concatenation of the input buffer sequences. This buffer sequence will be a MutableBufferSequence if each of the passed buffer sequences is also a MutableBufferSequence; otherwise the returned buffer sequence will be a ConstBufferSequence.

See Also

buffers_view

Requirements

Header: beast/core/buffer_cat.hpp

Convenience header: beast/core.hpp


PrevUpHomeNext