Debian Codegraph @

docs/api_reference/STL/stldb_vectorat.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>at</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.html" title="Chapter 4.  Db_vector" />
11 <link rel="prev" href="stldb_vectoroperator_sqbrk.html" title="operator[]" />
12 <link rel="next" href="stldb_vectorfront.html" title="front" />
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">at</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="stldb_vectoroperator_sqbrk.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 4. 
26 Db_vector </th>
27 <td width="20%" align="right"> <a accesskey="n" href="stldb_vectorfront.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_vectorat"></a>at</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_vectorat_details"></a>Function Details</h3>
45 </div>
46 </div>
47 </div>
48 <pre class="programlisting">
49 reference at(index_type n)
50 </pre>
51 <p>Index function. </p>
52 <div class="sect3" lang="en" xml:lang="en">
53 <div class="titlepage">
54 <div>
55 <div>
56 <h4 class="title"><a id="idp50173328"></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="idp50185768"></a>n</h5>
65 </div>
66 </div>
67 </div>
68 <p>The valid index of the vector. </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="idp50167160"></a>Return Value</h4>
76 </div>
77 </div>
78 </div>
79 <p>The reference to the element at specified position, can act as both a left value and a right value. </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="idp50174336"></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/vector/at/" target="_top">http://www.cplusplus.com/reference/stl/vector/at/</a> </p>
92 <p>
93 </p>
94 </div>
95 <pre class="programlisting">
96 const_reference at(index_type n) const
97 </pre>
98 <p>Read only index function. </p>
99 <p>Only used as a right value, no need for assignment capability. The return value can't be used to update the element. </p>
100 <div class="sect3" lang="en" xml:lang="en">
101 <div class="titlepage">
102 <div>
103 <div>
104 <h4 class="title"><a id="idp50172488"></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="idp50172680"></a>n</h5>
113 </div>
114 </div>
115 </div>
116 <p>The valid index of the vector. </p>
117 </div>
118 </div>
119 <div class="sect3" lang="en" xml:lang="en">
120 <div class="titlepage">
121 <div>
122 <div>
123 <h4 class="title"><a id="idp50184792"></a>Return Value</h4>
124 </div>
125 </div>
126 </div>
127 <p>The const reference to the element at specified position. </p>
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="idp50185176"></a>See Also</h4>
134 </div>
135 </div>
136 </div>
137 <p>
138 </p>
139 <p><a class="ulink" href="http://www.cplusplus.com/reference/stl/vector/at/" target="_top">http://www.cplusplus.com/reference/stl/vector/at/</a> </p>
140 <p>
141 </p>
142 </div>
143 </div>
144 <div class="sect2" lang="en" xml:lang="en">
145 <div class="titlepage">
146 <div>
147 <div>
148 <h3 class="title"><a id="idp50172272"></a>Group: Element access functions.</h3>
149 </div>
150 </div>
151 </div>
152 <p>The operator[] and <a class="link" href="stldb_vectorat.html" title="at">at()</a>
153 only come from std::vector and std::deque, If you are using <a class="link" href="db_vector.html" title="Chapter 4.  Db_vector">db_vector</a>
154 as std::list, you don't have to set DB_RENUMBER flag to the backing database handle, and you get better performance, but at the same time you can't use these functions.</p>
155 <p>Otherwise if you have set the DB_RENUMBER flag to the backing database handle, you can use this function though it is an std::list equivalent. </p>
156 </div>
157 <div class="sect2" lang="en" xml:lang="en">
158 <div class="titlepage">
159 <div>
160 <div>
161 <h3 class="title"><a id="idp50189800"></a>Class</h3>
162 </div>
163 </div>
164 </div>
165 <p>
166 <a class="link" href="db_vector.html" title="Chapter 4.  Db_vector">db_vector</a>
167 </p>
168 </div>
169 </div>
170 <div class="navfooter">
171 <hr />
172 <table width="100%" summary="Navigation footer">
173 <tr>
174 <td width="40%" align="left"><a accesskey="p" href="stldb_vectoroperator_sqbrk.html">Prev</a> </td>
175 <td width="20%" align="center">
176 <a accesskey="u" href="db_vector.html">Up</a>
177 </td>
178 <td width="40%" align="right"> <a accesskey="n" href="stldb_vectorfront.html">Next</a></td>
179 </tr>
180 <tr>
181 <td width="40%" align="left" valign="top">operator[] </td>
182 <td width="20%" align="center">
183 <a accesskey="h" href="index.html">Home</a>
184 </td>
185 <td width="40%" align="right" valign="top"> front</td>
186 </tr>
187 </table>
188 </div>
189 </body>
190 </html>