Debian Codegraph @

docs/api_reference/STL/stldb_mapcount.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>count</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_mapequal_range.html" title="equal_range" />
12 <link rel="next" href="stldb_mapupper_bound.html" title="upper_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">count</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="stldb_mapequal_range.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_mapupper_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_mapcount"></a>count</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_mapcount_details"></a>Function Details</h3>
45 </div>
46 </div>
47 </div>
48 <pre class="programlisting">
49 size_type count(const key_type &amp;x) const
50 </pre>
51 <p>Count the number of key/data pairs having 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="idp50511512"></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="idp50519648"></a>x</h5>
65 </div>
66 </div>
67 </div>
68 <p>The key to count. </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="idp50518288"></a>Return Value</h4>
76 </div>
77 </div>
78 </div>
79 <p>The number of key/data pairs having x as key within the container. </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="idp50518680"></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/count/" target="_top">http://www.cplusplus.com/reference/stl/map/count/</a> </p>
92 <p>
93 </p>
94 </div>
95 </div>
96 <div class="sect2" lang="en" xml:lang="en">
97 <div class="titlepage">
98 <div>
99 <div>
100 <h3 class="title"><a id="idp50506280"></a>Group: Searching Functions</h3>
101 </div>
102 </div>
103 </div>
104 <p>The following functions are returning iterators, and they by default return read-write iterators.</p>
105 <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>
106 </div>
107 <div class="sect2" lang="en" xml:lang="en">
108 <div class="titlepage">
109 <div>
110 <div>
111 <h3 class="title"><a id="idp50509136"></a>Class</h3>
112 </div>
113 </div>
114 </div>
115 <p>
116 <a class="link" href="db_map.html" title="Chapter 5.  Db_map">db_map</a>
117 </p>
118 </div>
119 </div>
120 <div class="navfooter">
121 <hr />
122 <table width="100%" summary="Navigation footer">
123 <tr>
124 <td width="40%" align="left"><a accesskey="p" href="stldb_mapequal_range.html">Prev</a> </td>
125 <td width="20%" align="center">
126 <a accesskey="u" href="db_map.html">Up</a>
127 </td>
128 <td width="40%" align="right"> <a accesskey="n" href="stldb_mapupper_bound.html">Next</a></td>
129 </tr>
130 <tr>
131 <td width="40%" align="left" valign="top">equal_range </td>
132 <td width="20%" align="center">
133 <a accesskey="h" href="index.html">Home</a>
134 </td>
135 <td width="40%" align="right" valign="top"> upper_bound</td>
136 </tr>
137 </table>
138 </div>
139 </body>
140 </html>