boost::asio::ip::basic_resolver_results

A range of entries produced by a resolver.

Synopsis

Declared in <boost/asio/ip/basic_resolver_results.hpp>

template<typename InternetProtocol>
class basic_resolver_results;

Types

Name

Description

const_iterator

The type of an iterator into the range.

const_reference

The type of a const reference to a value in the range.

difference_type

Type used to represent the distance between two iterators in the range.

endpoint_type

The endpoint type associated with the results.

iterator

The type of an iterator into the range.

protocol_type

The protocol type associated with the results.

reference

The type of a non‐const reference to a value in the range.

size_type

Type used to represent a count of the elements in the range.

value_type

The type of a value in the results range.

Member Functions

Name

Description

basic_resolver_results [constructor]

Constructors

operator=

Assignment operators

begin

Obtain a begin iterator for the results range.

cbegin

Obtain a begin iterator for the results range.

cend

Obtain an end iterator for the results range.

empty

Determine whether the results range is empty.

end

Obtain an end iterator for the results range.

max_size

Get the maximum number of entries permitted in a results range.

size

Get the number of entries in the results range.

swap

Swap the results range with another.

Static Member Functions

Name

Description

create

Friends

Name

Description

boost::asio::ip::operator!=

Test two iterators for inequality.

boost::asio::ip::operator==

Test two iterators for equality.

Description

The boost::asio::ip::basic_resolver_results class template is used to define a range over the results returned by a resolver.

The iterator's value_type, obtained when a results iterator is dereferenced, is:

const basic_resolver_entry<InternetProtocol>
For backward compatibility, basic_resolver_results is derived from basic_resolver_iterator. This derivation is deprecated.

Thread Safety

Distinct objects: Safe. Shared objects: Unsafe.

Created with MrDocs