asio C++ library

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 [static]

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

buffers_iterator [constructor]

Default constructor. Creates an iterator in an undefined state.

end [static]

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: asio/buffers_iterator.hpp

Convenience header: asio.hpp


PrevUpHomeNext