Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

buffer_registration

Automatically registers and unregistered buffers with an execution context.

template<
    typename MutableBufferSequence,
    typename Allocator = std::allocator<void>>
class buffer_registration
Types

Name

Description

allocator_type

The allocator type used for allocating storage for the buffers container.

const_iterator

The type of a const iterator over the registered buffers.

iterator

The type of an iterator over the registered buffers.

Member Functions

Name

Description

at

Get the buffer at the specified index.

begin

Get the begin iterator for the sequence of registered buffers.

buffer_registration [constructor]

Register buffers with an executor's execution context.

Register buffers with an execution context.

Move constructor.

cbegin

Get the begin iterator for the sequence of registered buffers.

cend

Get the end iterator for the sequence of registered buffers.

end

Get the end iterator for the sequence of registered buffers.

operator=

Move assignment.

operator[]

Get the buffer at the specified index.

size

Get the number of registered buffers.

~buffer_registration [destructor]

Unregisters the buffers.

For portability, applications should assume that only one registration is permitted per execution context.

Requirements

Header: boost/asio/buffer_registration.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext