1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>ip::basic_resolver::iterator</title> 5<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../../boost_asio.html" title="Boost.Asio"> 8<link rel="up" href="../ip__basic_resolver.html" title="ip::basic_resolver"> 9<link rel="prev" href="get_executor.html" title="ip::basic_resolver::get_executor"> 10<link rel="next" href="numeric_host.html" title="ip::basic_resolver::numeric_host"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> 15<td align="center"><a href="../../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="get_executor.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../ip__basic_resolver.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="numeric_host.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h4 class="title"> 27<a name="boost_asio.reference.ip__basic_resolver.iterator"></a><a class="link" href="iterator.html" title="ip::basic_resolver::iterator">ip::basic_resolver::iterator</a> 28</h4></div></div></div> 29<p> 30 <a class="indexterm" name="boost_asio.indexterm.ip__basic_resolver.iterator"></a> 31(Deprecated.) 32 The iterator type. 33 </p> 34<pre class="programlisting">typedef basic_resolver_iterator< InternetProtocol > iterator; 35</pre> 36<h6> 37<a name="boost_asio.reference.ip__basic_resolver.iterator.h0"></a> 38 <span class="phrase"><a name="boost_asio.reference.ip__basic_resolver.iterator.types"></a></span><a class="link" href="iterator.html#boost_asio.reference.ip__basic_resolver.iterator.types">Types</a> 39 </h6> 40<div class="informaltable"><table class="table"> 41<colgroup> 42<col> 43<col> 44</colgroup> 45<thead><tr> 46<th> 47 <p> 48 Name 49 </p> 50 </th> 51<th> 52 <p> 53 Description 54 </p> 55 </th> 56</tr></thead> 57<tbody> 58<tr> 59<td> 60 <p> 61 <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> 62 </p> 63 </td> 64<td> 65 <p> 66 The type used for the distance between two iterators. 67 </p> 68 </td> 69</tr> 70<tr> 71<td> 72 <p> 73 <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> 74 </p> 75 </td> 76<td> 77 <p> 78 The iterator category. 79 </p> 80 </td> 81</tr> 82<tr> 83<td> 84 <p> 85 <a class="link" href="../ip__basic_resolver_iterator/pointer.html" title="ip::basic_resolver_iterator::pointer"><span class="bold"><strong>pointer</strong></span></a> 86 </p> 87 </td> 88<td> 89 <p> 90 The type of the result of applying operator->() to the iterator. 91 </p> 92 </td> 93</tr> 94<tr> 95<td> 96 <p> 97 <a class="link" href="../ip__basic_resolver_iterator/reference.html" title="ip::basic_resolver_iterator::reference"><span class="bold"><strong>reference</strong></span></a> 98 </p> 99 </td> 100<td> 101 <p> 102 The type of the result of applying operator*() to the iterator. 103 </p> 104 </td> 105</tr> 106<tr> 107<td> 108 <p> 109 <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> 110 </p> 111 </td> 112<td> 113 <p> 114 The type of the value pointed to by the iterator. 115 </p> 116 </td> 117</tr> 118</tbody> 119</table></div> 120<h6> 121<a name="boost_asio.reference.ip__basic_resolver.iterator.h1"></a> 122 <span class="phrase"><a name="boost_asio.reference.ip__basic_resolver.iterator.member_functions"></a></span><a class="link" href="iterator.html#boost_asio.reference.ip__basic_resolver.iterator.member_functions">Member 123 Functions</a> 124 </h6> 125<div class="informaltable"><table class="table"> 126<colgroup> 127<col> 128<col> 129</colgroup> 130<thead><tr> 131<th> 132 <p> 133 Name 134 </p> 135 </th> 136<th> 137 <p> 138 Description 139 </p> 140 </th> 141</tr></thead> 142<tbody> 143<tr> 144<td> 145 <p> 146 <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> 147 </p> 148 </td> 149<td> 150 <p> 151 Default constructor creates an end iterator. <br> <span class="silver"> —</span><br> Copy 152 constructor. <br> <span class="silver"> —</span><br> Move constructor. 153 </p> 154 </td> 155</tr> 156<tr> 157<td> 158 <p> 159 <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> 160 </p> 161 </td> 162<td> 163 <p> 164 Dereference an iterator. 165 </p> 166 </td> 167</tr> 168<tr> 169<td> 170 <p> 171 <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> 172 </p> 173 </td> 174<td> 175 <p> 176 Increment operator (prefix). <br> <span class="silver"> —</span><br> Increment operator 177 (postfix). 178 </p> 179 </td> 180</tr> 181<tr> 182<td> 183 <p> 184 <a class="link" href="../ip__basic_resolver_iterator/operator_arrow_.html" title="ip::basic_resolver_iterator::operator->"><span class="bold"><strong>operator-></strong></span></a> 185 </p> 186 </td> 187<td> 188 <p> 189 Dereference an iterator. 190 </p> 191 </td> 192</tr> 193<tr> 194<td> 195 <p> 196 <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> 197 </p> 198 </td> 199<td> 200 <p> 201 Assignment operator. <br> <span class="silver"> —</span><br> Move-assignment operator. 202 </p> 203 </td> 204</tr> 205</tbody> 206</table></div> 207<h6> 208<a name="boost_asio.reference.ip__basic_resolver.iterator.h2"></a> 209 <span class="phrase"><a name="boost_asio.reference.ip__basic_resolver.iterator.protected_member_functions"></a></span><a class="link" href="iterator.html#boost_asio.reference.ip__basic_resolver.iterator.protected_member_functions">Protected 210 Member Functions</a> 211 </h6> 212<div class="informaltable"><table class="table"> 213<colgroup> 214<col> 215<col> 216</colgroup> 217<thead><tr> 218<th> 219 <p> 220 Name 221 </p> 222 </th> 223<th> 224 <p> 225 Description 226 </p> 227 </th> 228</tr></thead> 229<tbody> 230<tr> 231<td> 232 <p> 233 <a class="link" href="../ip__basic_resolver_iterator/dereference.html" title="ip::basic_resolver_iterator::dereference"><span class="bold"><strong>dereference</strong></span></a> 234 </p> 235 </td> 236<td> 237 </td> 238</tr> 239<tr> 240<td> 241 <p> 242 <a class="link" href="../ip__basic_resolver_iterator/equal.html" title="ip::basic_resolver_iterator::equal"><span class="bold"><strong>equal</strong></span></a> 243 </p> 244 </td> 245<td> 246 </td> 247</tr> 248<tr> 249<td> 250 <p> 251 <a class="link" href="../ip__basic_resolver_iterator/increment.html" title="ip::basic_resolver_iterator::increment"><span class="bold"><strong>increment</strong></span></a> 252 </p> 253 </td> 254<td> 255 </td> 256</tr> 257</tbody> 258</table></div> 259<h6> 260<a name="boost_asio.reference.ip__basic_resolver.iterator.h3"></a> 261 <span class="phrase"><a name="boost_asio.reference.ip__basic_resolver.iterator.protected_data_members"></a></span><a class="link" href="iterator.html#boost_asio.reference.ip__basic_resolver.iterator.protected_data_members">Protected 262 Data Members</a> 263 </h6> 264<div class="informaltable"><table class="table"> 265<colgroup> 266<col> 267<col> 268</colgroup> 269<thead><tr> 270<th> 271 <p> 272 Name 273 </p> 274 </th> 275<th> 276 <p> 277 Description 278 </p> 279 </th> 280</tr></thead> 281<tbody> 282<tr> 283<td> 284 <p> 285 <a class="link" href="../ip__basic_resolver_iterator/index_.html" title="ip::basic_resolver_iterator::index_"><span class="bold"><strong>index_</strong></span></a> 286 </p> 287 </td> 288<td> 289 </td> 290</tr> 291<tr> 292<td> 293 <p> 294 <a class="link" href="../ip__basic_resolver_iterator/values_.html" title="ip::basic_resolver_iterator::values_"><span class="bold"><strong>values_</strong></span></a> 295 </p> 296 </td> 297<td> 298 </td> 299</tr> 300</tbody> 301</table></div> 302<h6> 303<a name="boost_asio.reference.ip__basic_resolver.iterator.h4"></a> 304 <span class="phrase"><a name="boost_asio.reference.ip__basic_resolver.iterator.friends"></a></span><a class="link" href="iterator.html#boost_asio.reference.ip__basic_resolver.iterator.friends">Friends</a> 305 </h6> 306<div class="informaltable"><table class="table"> 307<colgroup> 308<col> 309<col> 310</colgroup> 311<thead><tr> 312<th> 313 <p> 314 Name 315 </p> 316 </th> 317<th> 318 <p> 319 Description 320 </p> 321 </th> 322</tr></thead> 323<tbody> 324<tr> 325<td> 326 <p> 327 <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> 328 </p> 329 </td> 330<td> 331 <p> 332 Test two iterators for inequality. 333 </p> 334 </td> 335</tr> 336<tr> 337<td> 338 <p> 339 <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> 340 </p> 341 </td> 342<td> 343 <p> 344 Test two iterators for equality. 345 </p> 346 </td> 347</tr> 348</tbody> 349</table></div> 350<p> 351 The <a class="link" href="../ip__basic_resolver_iterator.html" title="ip::basic_resolver_iterator"><code class="computeroutput">ip::basic_resolver_iterator</code></a> 352 class template is used to define iterators over the results returned by 353 a resolver. 354 </p> 355<p> 356 The iterator's value_type, obtained when the iterator is dereferenced, 357 is: 358 </p> 359<pre class="programlisting">const basic_resolver_entry<InternetProtocol> 360</pre> 361<h6> 362<a name="boost_asio.reference.ip__basic_resolver.iterator.h5"></a> 363 <span class="phrase"><a name="boost_asio.reference.ip__basic_resolver.iterator.thread_safety"></a></span><a class="link" href="iterator.html#boost_asio.reference.ip__basic_resolver.iterator.thread_safety">Thread 364 Safety</a> 365 </h6> 366<p> 367 <span class="emphasis"><em>Distinct</em></span> <span class="emphasis"><em>objects:</em></span> Safe. 368 </p> 369<p> 370 <span class="emphasis"><em>Shared</em></span> <span class="emphasis"><em>objects:</em></span> Unsafe. 371 </p> 372<h6> 373<a name="boost_asio.reference.ip__basic_resolver.iterator.h6"></a> 374 <span class="phrase"><a name="boost_asio.reference.ip__basic_resolver.iterator.requirements"></a></span><a class="link" href="iterator.html#boost_asio.reference.ip__basic_resolver.iterator.requirements">Requirements</a> 375 </h6> 376<p> 377 <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/ip/basic_resolver.hpp</code> 378 </p> 379<p> 380 <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio.hpp</code> 381 </p> 382</div> 383<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 384<td align="left"></td> 385<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M. 386 Kohlhoff<p> 387 Distributed under the Boost Software License, Version 1.0. (See accompanying 388 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>) 389 </p> 390</div></td> 391</tr></table> 392<hr> 393<div class="spirit-nav"> 394<a accesskey="p" href="get_executor.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../ip__basic_resolver.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="numeric_host.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> 395</div> 396</body> 397</html> 398