Beast Logo

PrevUpHomeNext

buffer_cat

Concatenate 2 or more buffer sequences.

Synopsis

Defined in header <beast/core/buffer_cat.hpp>

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

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

Name

Description

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

buffer_cat_view

Convenience header <beast/core.hpp>


PrevUpHomeNext