Debian Codegraph @

docs/api_reference/STL/stldb_vector_base_iteratoroperator_decr.html

raw symbols SCIP
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 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">operator--</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="stldb_vector_base_iteratoroperator_incr.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 12. 
26 Db_vector_base_iterator </th>
27 <td width="20%" align="right"> <a accesskey="n" href="stldb_vector_base_iteratoroperator_assign.html">Next</a></td>
28 </tr>
29 </table>
30 <hr />
31 </div>
32 <div class="sect1" lang="en" xml:lang="en">
33 <div class="titlepage">
34 <div>
35 <div>
36 <h2 class="title" style="clear: both"><a id="stldb_vector_base_iteratoroperator_decr"></a>operator--</h2>
37 </div>
38 </div>
39 </div>
40 <div class="sect2" lang="en" xml:lang="en">
41 <div class="titlepage">
42 <div>
43 <div>
44 <h3 class="title"><a id="stldb_vector_base_iteratoroperator_decr_details"></a>Function Details</h3>
45 </div>
46 </div>
47 </div>
48 <pre class="programlisting">
49 self&amp; operator--()
50 </pre>
51 <p>Pre-decrement. </p>
52 <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>
53 <div class="sect3" lang="en" xml:lang="en">
54 <div class="titlepage">
55 <div>
56 <div>
57 <h4 class="title"><a id="idp50943504"></a>Return Value</h4>
58 </div>
59 </div>
60 </div>
61 <p>This iterator after decremented. </p>
62 </div>
63 <pre class="programlisting">
64 self operator--(int)
65 </pre>
66 <p>Post-decrement. </p>
67 <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>
68 <div class="sect3" lang="en" xml:lang="en">
69 <div class="titlepage">
70 <div>
71 <div>
72 <h4 class="title"><a id="idp50946024"></a>Return Value</h4>
73 </div>
74 </div>
75 </div>
76 <p>A new iterator not decremented. </p>
77 </div>
78 </div>
79 <div class="sect2" lang="en" xml:lang="en">
80 <div class="titlepage">
81 <div>
82 <div>
83 <h3 class="title"><a id="idp50922336"></a>Group: Iterator movement operators.</h3>
84 </div>
85 </div>
86 </div>
87 <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>
88 <p>When an iterator is moved closer to "begin", we say it is moved forward, otherwise we say it is moved backward. </p>
89 </div>
90 <div class="sect2" lang="en" xml:lang="en">
91 <div class="titlepage">
92 <div>
93 <div>
94 <h3 class="title"><a id="idp50946664"></a>Class</h3>
95 </div>
96 </div>
97 </div>
98 <p>
99 <a class="link" href="db_vector_base_iterator.html" title="Chapter 12.  Db_vector_base_iterator">db_vector_base_iterator</a>
100 </p>
101 </div>
102 </div>
103 <div class="navfooter">
104 <hr />
105 <table width="100%" summary="Navigation footer">
106 <tr>
107 <td width="40%" align="left"><a accesskey="p" href="stldb_vector_base_iteratoroperator_incr.html">Prev</a> </td>
108 <td width="20%" align="center">
109 <a accesskey="u" href="db_vector_base_iterator.html">Up</a>
110 </td>
111 <td width="40%" align="right"> <a accesskey="n" href="stldb_vector_base_iteratoroperator_assign.html">Next</a></td>
112 </tr>
113 <tr>
114 <td width="40%" align="left" valign="top">operator++ </td>
115 <td width="20%" align="center">
116 <a accesskey="h" href="index.html">Home</a>
117 </td>
118 <td width="40%" align="right" valign="top"> operator=</td>
119 </tr>
120 </table>
121 </div>
122 </body>
123 </html>