Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / libstdc++-v3 / docs / html / ext / pb_assoc / hash_prime_size_policy.html
blob5b6d0ac22244a79728baae3bd323dbc3ec0bb43e
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
5 <html>
6 <head>
7 <title>hash_prime_size_policy Interface
8 </title>
10 </head>
12 <body>
13 <h1>
14 <tt>hash_prime_size_policy
15 </tt>
17 Interface
20 </h1>
22 <p>A size policy whose sequence of sizes form a nearly-exponential sequence of primes.
23 </p>
25 <ol>
26 <li>
27 <a href = "../../../../include/ext/pb_assoc/hash_policy.hpp"><tt>hash_policy.hpp</tt>
28 </a>
30 </li>
32 <li>
33 Public Types and Constants:
36 <ol>
37 <li>
38 <a href = "#link1">General definitions.
39 </a>
41 </li>
43 </ol>
45 </li>
47 <li>
48 Public Methods:
51 <ol>
52 <li>
53 <a href = "#link2">Constructors, destructor, and related.
54 </a>
56 </li>
58 </ol>
60 </li>
62 <li>
63 Protected Methods:
66 <ol>
67 <li>
68 <a href = "#link3">Size methods
69 </a>
71 </li>
73 </ol>
75 </li>
77 </ol>
80 <h2>
81 <a name = "link1">General definitions.
82 </a>
84 </h2>
86 <table WIDTH = "100%" BORDER = "1">
87 <TR><TD Width = "30%" ALIGN = "left"><b>Type</b></TD><TD Width = "55%" ALIGN = "left"><b>Definition</b></TD><TD Width = "15%" ALIGN = "left"><b>Description</b></TD></TR>
90 <tr>
91 <td>
92 <pre><a name = "size_type3735929547">size_type</a></pre>
95 </td>
97 <td>
98 <pre>size_t</pre>
101 </td>
103 <td>
104 <p>Size type.</p>
107 </td>
109 </tr>
111 </table>
113 <h2>
114 <a name = "link2">Constructors, destructor, and related.
115 </a>
117 </h2>
119 <table WIDTH = "100%" BORDER = "1">
120 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
123 <tr>
124 <td>
125 <pre><b>inline</b> <b>void</b>
126 swap
127 (<font color = "olive">hash_prime_size_policy</font> &amp;r_other)</pre>
130 </td>
132 <td>
133 <p>Swaps content.</p>
136 </td>
138 </tr>
140 </table>
142 <h2>
143 <a name = "link3">Size methods
144 </a>
146 </h2>
148 <table WIDTH = "100%" BORDER = "1">
149 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
152 <tr>
153 <td>
154 <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
155 get_init_size
156 (<a href = "#size_type3735929547">size_type</a> suggested_size) <b>const</b></pre>
159 </td>
161 <td>
162 <p>Given <font color = "#666666"><tt>suggested_size</tt></font>, a suggested size, returns an initial size of the container related to the initial size.</p>
165 </td>
167 </tr>
169 <tr>
170 <td>
171 <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
172 get_nearest_larger_size
173 (<a href = "#size_type3735929547">size_type</a> cur_size) <b>const</b></pre>
176 </td>
178 <td>
179 <p>Given <font color = "#666666"><tt>cur_size</tt></font>, the current size, returns a size that is larger.</p>
182 </td>
184 </tr>
186 <tr>
187 <td>
188 <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
189 get_nearest_smaller_size
190 (<a href = "#size_type3735929547">size_type</a> cur_size) <b>const</b></pre>
193 </td>
195 <td>
196 <p>Given <font color = "#666666"><tt>cur_size</tt></font>, the current size, returns a size that is smaller.</p>
199 </td>
201 </tr>
203 </table>
207 </body>
209 </html>