asio C++ library

PrevUpHomeNext

ip::address_iterator_v4

An input iterator that can be used for traversing IPv4 addresses.

class address_iterator_v4
Types

Name

Description

difference_type

Distance between two iterators.

iterator_category

Denotes that the iterator satisfies the input iterator requirements.

pointer

The type of a pointer to an element pointed to by the iterator.

reference

The type of a reference to an element pointed to by the iterator.

value_type

The type of the elements pointed to by the iterator.

Member Functions

Name

Description

address_iterator_v4

Construct an iterator that points to the specified address.

Copy constructor.

operator *

Dereference the iterator.

operator++

Pre-increment operator.

Post-increment operator.

operator--

Pre-decrement operator.

Post-decrement operator.

operator->

Dereference the iterator.

operator=

Assignment operator.

Friends

Name

Description

operator!=

Compare two addresses for inequality.

operator==

Compare two addresses for equality.

In addition to satisfying the input iterator requirements, this iterator also supports decrement.

Thread Safety

Distinct objects: Safe.

Shared objects: Unsafe.

Requirements

Header: asio/ip/address_iterator_v4.hpp

Convenience header: asio.hpp


PrevUpHomeNext