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_front

Returns the first buffer in a buffer sequence.

Synopsis

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

template<
    class BufferSequence>
std::conditional< boost::asio::is_mutable_buffer_sequence< BufferSequence >::value, boost::asio::mutable_buffer, boost::asio::const_buffer >::type
buffers_front(
    BufferSequence const& buffers);
Description

This returns the first buffer in the buffer sequence. If the buffer sequence is an empty range, the returned buffer will have a zero buffer size.

Parameters

Name

Description

buffers

The buffer sequence. If the sequence is mutable, the returned buffer sequence will also be mutable. Otherwise, the returned buffer sequence will be constant.

Convenience header <boost/beast/core.hpp>


PrevUpHomeNext