Debian Codegraph @

docs/api_reference/STL/stldb_mapfind.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>find</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_map.html" title="Chapter 5.  Db_map" />
11 <link rel="prev" href="stldb_maperase.html" title="erase" />
12 <link rel="next" href="stldb_maplower_bound.html" title="lower_bound" />
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">find</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="stldb_maperase.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 5. 
26 Db_map </th>
27 <td width="20%" align="right"> <a accesskey="n" href="stldb_maplower_bound.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_mapfind"></a>find</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_mapfind_details"></a>Function Details</h3>
45 </div>
46 </div>
47 </div>
48 <pre class="programlisting">
49 const_iterator find(const key_type &amp;x) const
50 </pre>
51 <p>Find the key/data pair with specified key x. </p>
52 <div class="sect3" lang="en" xml:lang="en">
53 <div class="titlepage">
54 <div>
55 <div>
56 <h4 class="title"><a id="idp50485744"></a>Parameters</h4>
57 </div>
58 </div>
59 </div>
60 <div class="sect4" lang="en" xml:lang="en">
61 <div class="titlepage">
62 <div>
63 <div>
64 <h5 class="title"><a id="idp50487696"></a>x</h5>
65 </div>
66 </div>
67 </div>
68 <p>The target key to find. </p>
69 </div>
70 </div>
71 <div class="sect3" lang="en" xml:lang="en">
72 <div class="titlepage">
73 <div>
74 <div>
75 <h4 class="title"><a id="idp50494128"></a>Return Value</h4>
76 </div>
77 </div>
78 </div>
79 <p>The valid const iterator sitting on the key x, or an invalid one. </p>
80 </div>
81 <div class="sect3" lang="en" xml:lang="en">
82 <div class="titlepage">
83 <div>
84 <div>
85 <h4 class="title"><a id="idp50496512"></a>See Also</h4>
86 </div>
87 </div>
88 </div>
89 <p>
90 </p>
91 <p><a class="ulink" href="http://www.cplusplus.com/reference/stl/map/find/" target="_top">http://www.cplusplus.com/reference/stl/map/find/</a> </p>
92 <p>
93 </p>
94 </div>
95 <pre class="programlisting">
96 iterator find(const key_type &amp;x,
97 bool readonly=false)
98 </pre>
99 <p>Find the key/data pair with specified key x. </p>
100 <div class="sect3" lang="en" xml:lang="en">
101 <div class="titlepage">
102 <div>
103 <div>
104 <h4 class="title"><a id="idp50490320"></a>Parameters</h4>
105 </div>
106 </div>
107 </div>
108 <div class="sect4" lang="en" xml:lang="en">
109 <div class="titlepage">
110 <div>
111 <div>
112 <h5 class="title"><a id="idp50486696"></a>x</h5>
113 </div>
114 </div>
115 </div>
116 <p>The target key to find. </p>
117 </div>
118 <div class="sect4" lang="en" xml:lang="en">
119 <div class="titlepage">
120 <div>
121 <div>
122 <h5 class="title"><a id="idp50485968"></a>readonly</h5>
123 </div>
124 </div>
125 </div>
126 <p>Whether the returned iterator is readonly. </p>
127 </div>
128 </div>
129 <div class="sect3" lang="en" xml:lang="en">
130 <div class="titlepage">
131 <div>
132 <div>
133 <h4 class="title"><a id="idp50486288"></a>Return Value</h4>
134 </div>
135 </div>
136 </div>
137 <p>The valid iterator sitting on the key x, or an invalid one. </p>
138 </div>
139 <div class="sect3" lang="en" xml:lang="en">
140 <div class="titlepage">
141 <div>
142 <div>
143 <h4 class="title"><a id="idp50487296"></a>See Also</h4>
144 </div>
145 </div>
146 </div>
147 <p>
148 </p>
149 <p><a class="ulink" href="http://www.cplusplus.com/reference/stl/map/find/" target="_top">http://www.cplusplus.com/reference/stl/map/find/</a> </p>
150 <p>
151 </p>
152 </div>
153 </div>
154 <div class="sect2" lang="en" xml:lang="en">
155 <div class="titlepage">
156 <div>
157 <div>
158 <h3 class="title"><a id="idp50472392"></a>Group: Searching Functions</h3>
159 </div>
160 </div>
161 </div>
162 <p>The following functions are returning iterators, and they by default return read-write iterators.</p>
163 <p>If you intend to use the returned iterator only to read, you should call the const version of each function using a const reference to this container. Using const iterators can potentially promote concurrency a lot. You can also set the readonly parameter to each non-const version of the functions to true if you don't use the returned iterator to write, which also promotes concurrency and overall performance. </p>
164 </div>
165 <div class="sect2" lang="en" xml:lang="en">
166 <div class="titlepage">
167 <div>
168 <div>
169 <h3 class="title"><a id="idp50497256"></a>Class</h3>
170 </div>
171 </div>
172 </div>
173 <p>
174 <a class="link" href="db_map.html" title="Chapter 5.  Db_map">db_map</a>
175 </p>
176 </div>
177 </div>
178 <div class="navfooter">
179 <hr />
180 <table width="100%" summary="Navigation footer">
181 <tr>
182 <td width="40%" align="left"><a accesskey="p" href="stldb_maperase.html">Prev</a> </td>
183 <td width="20%" align="center">
184 <a accesskey="u" href="db_map.html">Up</a>
185 </td>
186 <td width="40%" align="right"> <a accesskey="n" href="stldb_maplower_bound.html">Next</a></td>
187 </tr>
188 <tr>
189 <td width="40%" align="left" valign="top">erase </td>
190 <td width="20%" align="center">
191 <a accesskey="h" href="index.html">Home</a>
192 </td>
193 <td width="40%" align="right" valign="top"> lower_bound</td>
194 </tr>
195 </table>
196 </div>
197 </body>
198 </html>