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

PrevUpHomeNext

buffers_iterator

A random access iterator over the bytes in a buffer sequence.

template<
    typename BufferSequence,
    typename ByteType = char>
class buffers_iterator
Types

Name

Description

difference_type

The type used for the distance between two iterators.

iterator_category

The iterator category.

pointer

The type of the result of applying operator->() to the iterator.

reference

The type of the result of applying operator*() to the iterator.

value_type

The type of the value pointed to by the iterator.

Member Functions

Name

Description

begin

Construct an iterator representing the beginning of the buffers' data.

buffers_iterator

Default constructor. Creates an iterator in an undefined state.

end

Construct an iterator representing the end of the buffers' data.

operator *

Dereference an iterator.

operator++

Increment operator (prefix).

Increment operator (postfix).

operator+=

Addition operator.

operator--

Decrement operator (prefix).

Decrement operator (postfix).

operator-=

Subtraction operator.

operator->

Dereference an iterator.

operator[]

Access an individual element.

Friends

Name

Description

operator!=

Test two iterators for inequality.

operator+

Addition operator.

operator-

Subtraction operator.

operator<

Compare two iterators.

operator<=

Compare two iterators.

operator==

Test two iterators for equality.

operator>

Compare two iterators.

operator>=

Compare two iterators.

Requirements

Header: boost/asio/buffers_iterator.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext