iterator.html 13.9 KB
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ip::basic_resolver::iterator</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../ip__basic_resolver.html" title="ip::basic_resolver">
<link rel="prev" href="get_executor.html" title="ip::basic_resolver::get_executor">
<link rel="next" href="numeric_host.html" title="ip::basic_resolver::numeric_host">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="get_executor.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../ip__basic_resolver.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="numeric_host.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.ip__basic_resolver.iterator"></a><a class="link" href="iterator.html" title="ip::basic_resolver::iterator">ip::basic_resolver::iterator</a>
</h4></div></div></div>
<p>
          <a class="indexterm" name="asio.indexterm.ip__basic_resolver.iterator"></a> 
(Deprecated.)
          The iterator type.
        </p>
<pre class="programlisting">typedef basic_resolver_iterator&lt; InternetProtocol &gt; iterator;
</pre>
<h6>
<a name="asio.reference.ip__basic_resolver.iterator.h0"></a>
          <span><a name="asio.reference.ip__basic_resolver.iterator.types"></a></span><a class="link" href="iterator.html#asio.reference.ip__basic_resolver.iterator.types">Types</a>
        </h6>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
                  <p>
                    Name
                  </p>
                </th>
<th>
                  <p>
                    Description
                  </p>
                </th>
</tr></thead>
<tbody>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/difference_type.html" title="ip::basic_resolver_iterator::difference_type"><span class="bold"><strong>difference_type</strong></span></a>
                  </p>
                </td>
<td>
                  <p>
                    The type used for the distance between two iterators.
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/iterator_category.html" title="ip::basic_resolver_iterator::iterator_category"><span class="bold"><strong>iterator_category</strong></span></a>
                  </p>
                </td>
<td>
                  <p>
                    The iterator category.
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/pointer.html" title="ip::basic_resolver_iterator::pointer"><span class="bold"><strong>pointer</strong></span></a>
                  </p>
                </td>
<td>
                  <p>
                    The type of the result of applying operator-&gt;() to the iterator.
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/reference.html" title="ip::basic_resolver_iterator::reference"><span class="bold"><strong>reference</strong></span></a>
                  </p>
                </td>
<td>
                  <p>
                    The type of the result of applying operator*() to the iterator.
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/value_type.html" title="ip::basic_resolver_iterator::value_type"><span class="bold"><strong>value_type</strong></span></a>
                  </p>
                </td>
<td>
                  <p>
                    The type of the value pointed to by the iterator.
                  </p>
                </td>
</tr>
</tbody>
</table></div>
<h6>
<a name="asio.reference.ip__basic_resolver.iterator.h1"></a>
          <span><a name="asio.reference.ip__basic_resolver.iterator.member_functions"></a></span><a class="link" href="iterator.html#asio.reference.ip__basic_resolver.iterator.member_functions">Member
          Functions</a>
        </h6>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
                  <p>
                    Name
                  </p>
                </th>
<th>
                  <p>
                    Description
                  </p>
                </th>
</tr></thead>
<tbody>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/basic_resolver_iterator.html" title="ip::basic_resolver_iterator::basic_resolver_iterator"><span class="bold"><strong>basic_resolver_iterator</strong></span></a> <span class="silver">[constructor]</span>
                  </p>
                </td>
<td>
                  <p>
                    Default constructor creates an end iterator. <br> <span class="silver"></span><br> Copy
                    constructor. <br> <span class="silver"></span><br> Move constructor.
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/operator__star_.html" title="ip::basic_resolver_iterator::operator *"><span class="bold"><strong>operator *</strong></span></a>
                  </p>
                </td>
<td>
                  <p>
                    Dereference an iterator.
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/operator_plus__plus_.html" title="ip::basic_resolver_iterator::operator++"><span class="bold"><strong>operator++</strong></span></a>
                  </p>
                </td>
<td>
                  <p>
                    Increment operator (prefix). <br> <span class="silver"></span><br> Increment operator
                    (postfix).
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/operator_arrow_.html" title="ip::basic_resolver_iterator::operator-&gt;"><span class="bold"><strong>operator-&gt;</strong></span></a>
                  </p>
                </td>
<td>
                  <p>
                    Dereference an iterator.
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/operator_eq_.html" title="ip::basic_resolver_iterator::operator="><span class="bold"><strong>operator=</strong></span></a>
                  </p>
                </td>
<td>
                  <p>
                    Assignment operator. <br> <span class="silver"></span><br> Move-assignment operator.
                  </p>
                </td>
</tr>
</tbody>
</table></div>
<h6>
<a name="asio.reference.ip__basic_resolver.iterator.h2"></a>
          <span><a name="asio.reference.ip__basic_resolver.iterator.protected_member_functions"></a></span><a class="link" href="iterator.html#asio.reference.ip__basic_resolver.iterator.protected_member_functions">Protected
          Member Functions</a>
        </h6>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
                  <p>
                    Name
                  </p>
                </th>
<th>
                  <p>
                    Description
                  </p>
                </th>
</tr></thead>
<tbody>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/dereference.html" title="ip::basic_resolver_iterator::dereference"><span class="bold"><strong>dereference</strong></span></a>
                  </p>
                </td>
<td>
                </td>
</tr>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/equal.html" title="ip::basic_resolver_iterator::equal"><span class="bold"><strong>equal</strong></span></a>
                  </p>
                </td>
<td>
                </td>
</tr>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/increment.html" title="ip::basic_resolver_iterator::increment"><span class="bold"><strong>increment</strong></span></a>
                  </p>
                </td>
<td>
                </td>
</tr>
</tbody>
</table></div>
<h6>
<a name="asio.reference.ip__basic_resolver.iterator.h3"></a>
          <span><a name="asio.reference.ip__basic_resolver.iterator.protected_data_members"></a></span><a class="link" href="iterator.html#asio.reference.ip__basic_resolver.iterator.protected_data_members">Protected
          Data Members</a>
        </h6>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
                  <p>
                    Name
                  </p>
                </th>
<th>
                  <p>
                    Description
                  </p>
                </th>
</tr></thead>
<tbody>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/index_.html" title="ip::basic_resolver_iterator::index_"><span class="bold"><strong>index_</strong></span></a>
                  </p>
                </td>
<td>
                </td>
</tr>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/values_.html" title="ip::basic_resolver_iterator::values_"><span class="bold"><strong>values_</strong></span></a>
                  </p>
                </td>
<td>
                </td>
</tr>
</tbody>
</table></div>
<h6>
<a name="asio.reference.ip__basic_resolver.iterator.h4"></a>
          <span><a name="asio.reference.ip__basic_resolver.iterator.friends"></a></span><a class="link" href="iterator.html#asio.reference.ip__basic_resolver.iterator.friends">Friends</a>
        </h6>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
                  <p>
                    Name
                  </p>
                </th>
<th>
                  <p>
                    Description
                  </p>
                </th>
</tr></thead>
<tbody>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/operator_not__eq_.html" title="ip::basic_resolver_iterator::operator!="><span class="bold"><strong>operator!=</strong></span></a>
                  </p>
                </td>
<td>
                  <p>
                    Test two iterators for inequality.
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    <a class="link" href="../ip__basic_resolver_iterator/operator_eq__eq_.html" title="ip::basic_resolver_iterator::operator=="><span class="bold"><strong>operator==</strong></span></a>
                  </p>
                </td>
<td>
                  <p>
                    Test two iterators for equality.
                  </p>
                </td>
</tr>
</tbody>
</table></div>
<p>
          The <a class="link" href="../ip__basic_resolver_iterator.html" title="ip::basic_resolver_iterator"><code class="computeroutput">ip::basic_resolver_iterator</code></a>
          class template is used to define iterators over the results returned by
          a resolver.
        </p>
<p>
          The iterator's value_type, obtained when the iterator is dereferenced,
          is:
        </p>
<pre class="programlisting">const basic_resolver_entry&lt;InternetProtocol&gt;
</pre>
<h6>
<a name="asio.reference.ip__basic_resolver.iterator.h5"></a>
          <span><a name="asio.reference.ip__basic_resolver.iterator.thread_safety"></a></span><a class="link" href="iterator.html#asio.reference.ip__basic_resolver.iterator.thread_safety">Thread
          Safety</a>
        </h6>
<p>
          <span class="emphasis"><em>Distinct</em></span> <span class="emphasis"><em>objects:</em></span> Safe.
        </p>
<p>
          <span class="emphasis"><em>Shared</em></span> <span class="emphasis"><em>objects:</em></span> Unsafe.
        </p>
<h6>
<a name="asio.reference.ip__basic_resolver.iterator.h6"></a>
          <span><a name="asio.reference.ip__basic_resolver.iterator.requirements"></a></span><a class="link" href="iterator.html#asio.reference.ip__basic_resolver.iterator.requirements">Requirements</a>
        </h6>
<p>
          <span class="emphasis"><em>Header: </em></span><code class="literal">asio/ip/basic_resolver.hpp</code>
        </p>
<p>
          <span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
        </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
      Kohlhoff<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="get_executor.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../ip__basic_resolver.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="numeric_host.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>