• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/db-4.8.30/docs/api_reference/STL/
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>operator--</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="db_vector_base_iterator.html" title="Chapter��12.�� Db_vector_base_iterator" />
11    <link rel="prev" href="stldb_vector_base_iteratoroperator_incr.html" title="operator++" />
12    <link rel="next" href="stldb_vector_base_iteratoroperator_assign.html" title="operator=" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">
19operator--
20</th>
21        </tr>
22        <tr>
23          <td width="20%" align="left"><a accesskey="p" href="stldb_vector_base_iteratoroperator_incr.html">Prev</a>��</td>
24          <th width="60%" align="center">Chapter��12.��
25 Db_vector_base_iterator  </th>
26          <td width="20%" align="right">��<a accesskey="n" href="stldb_vector_base_iteratoroperator_assign.html">Next</a></td>
27        </tr>
28      </table>
29      <hr />
30    </div>
31    <div class="sect1" lang="en" xml:lang="en">
32      <div class="titlepage">
33        <div>
34          <div>
35            <h2 class="title" style="clear: both"><a id="stldb_vector_base_iteratoroperator_decr"></a>
36operator--
37</h2>
38          </div>
39        </div>
40      </div>
41      <div class="sect2" lang="en" xml:lang="en">
42        <div class="titlepage">
43          <div>
44            <div>
45              <h3 class="title"><a id="func_details"></a>
46Function Details</h3>
47            </div>
48          </div>
49        </div>
50        <pre class="programlisting">
51self&amp;��operator--()
52 </pre>
53        <div class="sect3" lang="en" xml:lang="en">
54          <div class="titlepage"></div>
55          <p>Pre-decrement. </p>
56          <p>Move the iterator one element backward, so that the element it sits on has a smaller index. Use --iter rather than iter-- where possible to avoid two useless iterator copy constructions. </p>
57        </div>
58        <div class="sect3" lang="en" xml:lang="en">
59          <div class="titlepage">
60            <div>
61              <div>
62                <h4 class="title"><a id="id1559908"></a>
63Return Value</h4>
64              </div>
65            </div>
66          </div>
67          <p>This iterator after decremented. </p>
68        </div>
69        <pre class="programlisting">
70self��operator--(int)
71 </pre>
72        <div class="sect3" lang="en" xml:lang="en">
73          <div class="titlepage"></div>
74          <p>Post-decrement. </p>
75          <p>Move the iterator one element backward, so that the element it sits on has a smaller index. Use --iter rather than iter-- where possible to avoid two useless iterator copy constructions. </p>
76        </div>
77        <div class="sect3" lang="en" xml:lang="en">
78          <div class="titlepage">
79            <div>
80              <div>
81                <h4 class="title"><a id="id1560005"></a>
82Return Value</h4>
83              </div>
84            </div>
85          </div>
86          <p>A new iterator not decremented. </p>
87        </div>
88      </div>
89      <div class="sect2" lang="en" xml:lang="en">
90        <div class="titlepage">
91          <div>
92            <div>
93              <h3 class="title"><a id="id1559754"></a>
94Group: Iterator movement operators.</h3>
95            </div>
96          </div>
97        </div>
98        <p>When we talk about iterator movement, we think the container is a uni-directional range, represented by [begin, end), and this is true no matter we are using iterators or reverse iterators.</p>
99        <p>When an iterator is moved closer to "begin", we say it is moved forward, otherwise we say it is moved backward. </p>
100      </div>
101      <div class="sect2" lang="en" xml:lang="en">
102        <div class="titlepage">
103          <div>
104            <div>
105              <h3 class="title"><a id="id1559978"></a>
106Class</h3>
107            </div>
108          </div>
109        </div>
110        <p>
111  <a class="link" href="db_vector_base_iterator.html" title="Chapter��12.�� Db_vector_base_iterator">
112  db_vector_base_iterator</a>
113     </p>
114      </div>
115    </div>
116    <div class="navfooter">
117      <hr />
118      <table width="100%" summary="Navigation footer">
119        <tr>
120          <td width="40%" align="left"><a accesskey="p" href="stldb_vector_base_iteratoroperator_incr.html">Prev</a>��</td>
121          <td width="20%" align="center">
122            <a accesskey="u" href="db_vector_base_iterator.html">Up</a>
123          </td>
124          <td width="40%" align="right">��<a accesskey="n" href="stldb_vector_base_iteratoroperator_assign.html">Next</a></td>
125        </tr>
126        <tr>
127          <td width="40%" align="left" valign="top">
128operator++
129��</td>
130          <td width="20%" align="center">
131            <a accesskey="h" href="index.html">Home</a>
132          </td>
133          <td width="40%" align="right" valign="top">��
134operator=
135</td>
136        </tr>
137      </table>
138    </div>
139  </body>
140</html>
141