| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>Chapter 17. Iterator Classes for db_set and db_multiset</title> |
| 7 | <link rel="stylesheet" href="apiReference.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" /> |
| 10 | <link rel="up" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" /> |
| 11 | <link rel="prev" href="stldb_map_iteratoroperator_assign.html" title="operator=" /> |
| 12 | <link rel="next" href="db_set_base_iterator.html" title="Chapter 18. Db_set_base_iterator" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">Chapter 17. Iterator Classes for db_set and db_multiset </th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="stldb_map_iteratoroperator_assign.html">Prev</a> </td> |
| 25 | <th width="60%" align="center"> </th> |
| 26 | <td width="20%" align="right"> <a accesskey="n" href="db_set_base_iterator.html">Next</a></td> |
| 27 | </tr> |
| 28 | </table> |
| 29 | <hr /> |
| 30 | </div> |
| 31 | <div class="chapter" lang="en" xml:lang="en"> |
| 32 | <div class="titlepage"> |
| 33 | <div> |
| 34 | <div> |
| 35 | <h2 class="title"><a id="dbset_iterators"></a>Chapter 17. Iterator Classes for db_set and db_multiset </h2> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 | <p><a class="link" href="db_set_base_iterator.html" title="Chapter 18. Db_set_base_iterator">db_set_base_iterator</a> |
| 40 | and <a class="link" href="db_set_iterator.html" title="Chapter 19. Db_set_iterator">db_set_iterator</a> |
| 41 | are the const iterator and iterator class for <a class="link" href="db_set.html" title="Chapter 7. Db_set">db_set</a> |
| 42 | and <a class="link" href="db_multiset.html" title="Chapter 8. Db_multiset">db_multiset</a> |
| 43 | . </p> |
| 44 | <p>They have identical behaviors to std::set::const_iterator and std::set::iterator respectively.</p> |
| 45 | <p>The difference between the two classes is that the <a class="link" href="db_set_base_iterator.html" title="Chapter 18. Db_set_base_iterator">db_set_base_iterator</a> |
| 46 | can only be used to read its referenced value, while <a class="link" href="db_set_iterator.html" title="Chapter 19. Db_set_iterator">db_set_iterator</a> |
| 47 | allows both read and write access. If the access pattern is readonly, it is strongly recommended that you use the const iterator because it is faster and more efficient.</p> |
| 48 | <p>The two classes inherit several functions from <a class="link" href="db_map_base_iterator.html" title="Chapter 15. Db_map_base_iterator">db_map_base_iterator</a> |
| 49 | and <a class="link" href="db_map_iterator.html" title="Chapter 16. Db_map_iterator">db_map_iterator</a> |
| 50 | respectively. </p> |
| 51 | <h4><a id="idp51192696"></a> |
| 52 | See Also |
| 53 | </h4> |
| 54 | <p> </p> |
| 55 | <p><a class="link" href="db_map_base_iterator.html" title="Chapter 15. Db_map_base_iterator">db_map_base_iterator</a> |
| 56 | <a class="link" href="db_map_iterator.html" title="Chapter 16. Db_map_iterator">db_map_iterator</a> |
| 57 | </p> |
| 58 | <p> |
| 59 | </p> |
| 60 | <h4><a id="idp51248384"></a> Public Members </h4> |
| 61 | <div class="informaltable"> |
| 62 | <table border="1" width="80%"> |
| 63 | <colgroup> |
| 64 | <col /> |
| 65 | <col /> |
| 66 | </colgroup> |
| 67 | <thead> |
| 68 | <tr> |
| 69 | <th>Member</th> |
| 70 | <th>Description</th> |
| 71 | </tr> |
| 72 | </thead> |
| 73 | <tbody> |
| 74 | <tr> |
| 75 | <td> |
| 76 | <a class="link" href="db_set_base_iterator.html" title="Chapter 18. Db_set_base_iterator"> |
| 77 | db_set_base_iterator</a> |
| 78 | </td> |
| 79 | <td> |
| 80 | db_set_base_iterator</td> |
| 81 | </tr> |
| 82 | <tr> |
| 83 | <td> |
| 84 | <a class="link" href="db_set_iterator.html" title="Chapter 19. Db_set_iterator"> |
| 85 | db_set_iterator</a> |
| 86 | </td> |
| 87 | <td> |
| 88 | db_set_iterator</td> |
| 89 | </tr> |
| 90 | </tbody> |
| 91 | </table> |
| 92 | </div> |
| 93 | <h4><a id="idp51248768"></a> |
| 94 | Group</h4> |
| 95 | <p> |
| 96 | <a class="xref" href="dbstl_iterators.html" title="Chapter 9. Dbstl Iterator Classes"> |
| 97 | Dbstl Iterator Classes </a> |
| 98 | </p> |
| 99 | </div> |
| 100 | <div class="navfooter"> |
| 101 | <hr /> |
| 102 | <table width="100%" summary="Navigation footer"> |
| 103 | <tr> |
| 104 | <td width="40%" align="left"><a accesskey="p" href="stldb_map_iteratoroperator_assign.html">Prev</a> </td> |
| 105 | <td width="20%" align="center"> </td> |
| 106 | <td width="40%" align="right"> <a accesskey="n" href="db_set_base_iterator.html">Next</a></td> |
| 107 | </tr> |
| 108 | <tr> |
| 109 | <td width="40%" align="left" valign="top">operator= </td> |
| 110 | <td width="20%" align="center"> |
| 111 | <a accesskey="h" href="index.html">Home</a> |
| 112 | </td> |
| 113 | <td width="40%" align="right" valign="top"> Chapter 18. |
| 114 | Db_set_base_iterator </td> |
| 115 | </tr> |
| 116 | </table> |
| 117 | </div> |
| 118 | </body> |
| 119 | </html> |