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 class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">Chapter��17.�� 19 Iterator Classes for db_set and db_multiset </th> 20 </tr> 21 <tr> 22 <td width="20%" align="left"><a accesskey="p" href="stldb_map_iteratoroperator_assign.html">Prev</a>��</td> 23 <th width="60%" align="center">��</th> 24 <td width="20%" align="right">��<a accesskey="n" href="db_set_base_iterator.html">Next</a></td> 25 </tr> 26 </table> 27 <hr /> 28 </div> 29 <div class="chapter" lang="en" xml:lang="en"> 30 <div class="titlepage"> 31 <div> 32 <div> 33 <h2 class="title"><a id="dbset_iterators"></a>Chapter��17.�� 34 Iterator Classes for db_set and db_multiset </h2> 35 </div> 36 </div> 37 </div> 38 <p><a class="link" href="db_set_base_iterator.html" title="Chapter��18.�� Db_set_base_iterator">db_set_base_iterator</a> 39 and <a class="link" href="db_set_iterator.html" title="Chapter��19.�� Db_set_iterator">db_set_iterator</a> 40 are the const iterator and iterator class for <a class="link" href="db_set.html" title="Chapter��7.�� Db_set">db_set</a> 41 and <a class="link" href="db_multiset.html" title="Chapter��8.�� Db_multiset">db_multiset</a> 42. </p> 43 <p>They have identical behaviors to std::set::const_iterator and std::set::iterator respectively.</p> 44 <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> 45 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> 46 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> 47 <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> 48 and <a class="link" href="db_map_iterator.html" title="Chapter��16.�� Db_map_iterator">db_map_iterator</a> 49 respectively. </p> 50 <h4><a id="id1564861"></a> 51See Also 52</h4> 53 <p> </p> 54 <p><a class="link" href="db_map_base_iterator.html" title="Chapter��15.�� Db_map_base_iterator">db_map_base_iterator</a> 55 <a class="link" href="db_map_iterator.html" title="Chapter��16.�� Db_map_iterator">db_map_iterator</a> 56 </p> 57 <h4><a id="id1564900"></a> Public Members </h4> 58 <div class="informaltable"> 59 <table border="1" width="80%"> 60 <colgroup> 61 <col /> 62 <col /> 63 </colgroup> 64 <thead> 65 <tr> 66 <th>Member</th> 67 <th>Description</th> 68 </tr> 69 </thead> 70 <tbody> 71 <tr> 72 <td> 73<a class="link" href="db_set_base_iterator.html" title="Chapter��18.�� Db_set_base_iterator"> 74db_set_base_iterator</a> 75</td> 76 <td> 77db_set_base_iterator</td> 78 </tr> 79 <tr> 80 <td> 81<a class="link" href="db_set_iterator.html" title="Chapter��19.�� Db_set_iterator"> 82db_set_iterator</a> 83</td> 84 <td> 85db_set_iterator</td> 86 </tr> 87 </tbody> 88 </table> 89 </div> 90 <h4><a id="id1565291"></a> 91Group</h4> 92 <p> 93<a class="xref" href="dbstl_iterators.html" title="Chapter��9.�� Dbstl Iterator Classes"> 94 Dbstl Iterator Classes </a> 95</p> 96 <p> 97</p> 98 </div> 99 <div class="navfooter"> 100 <hr /> 101 <table width="100%" summary="Navigation footer"> 102 <tr> 103 <td width="40%" align="left"><a accesskey="p" href="stldb_map_iteratoroperator_assign.html">Prev</a>��</td> 104 <td width="20%" align="center">��</td> 105 <td width="40%" align="right">��<a accesskey="n" href="db_set_base_iterator.html">Next</a></td> 106 </tr> 107 <tr> 108 <td width="40%" align="left" valign="top"> 109operator= 110��</td> 111 <td width="20%" align="center"> 112 <a accesskey="h" href="index.html">Home</a> 113 </td> 114 <td width="40%" align="right" valign="top">��Chapter��18.�� 115 Db_set_base_iterator </td> 116 </tr> 117 </table> 118 </div> 119 </body> 120</html> 121