aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/docs/html/ext/pb_assoc/hash_prime_size_policy.html
blob: 5b6d0ac22244a79728baae3bd323dbc3ec0bb43e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">


<html>
<head>
<title>hash_prime_size_policy Interface
</title>

</head>

<body>
<h1>
<tt>hash_prime_size_policy
</tt>

 Interface


</h1>

<p>A size policy whose sequence of sizes form a nearly-exponential sequence of primes.
</p>

<ol>
<li>
<a href = "../../../../include/ext/pb_assoc/hash_policy.hpp"><tt>hash_policy.hpp</tt>
</a>

</li>

<li>
Public Types and Constants:


<ol>
<li>
<a href = "#link1">General definitions.
</a>

</li>

</ol>

</li>

<li>
Public Methods:


<ol>
<li>
<a href = "#link2">Constructors, destructor, and related.
</a>

</li>

</ol>

</li>

<li>
Protected Methods:


<ol>
<li>
<a href = "#link3">Size methods
</a>

</li>

</ol>

</li>

</ol>


<h2>
<a name = "link1">General definitions.
</a>

</h2>

<table WIDTH = "100%" BORDER = "1">
<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>


<tr>
<td>
<pre><a name = "size_type3735929547">size_type</a></pre>


</td>

<td>
<pre>size_t</pre>


</td>

<td>
<p>Size type.</p>


</td>

</tr>

</table>

<h2>
<a name = "link2">Constructors, destructor, and related.
</a>

</h2>

<table WIDTH = "100%" BORDER = "1">
<TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>


<tr>
<td>
<pre><b>inline</b> <b>void</b>
  swap
  (<font color = "olive">hash_prime_size_policy</font> &amp;r_other)</pre>


</td>

<td>
<p>Swaps content.</p>


</td>

</tr>

</table>

<h2>
<a name = "link3">Size methods
</a>

</h2>

<table WIDTH = "100%" BORDER = "1">
<TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>


<tr>
<td>
<pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
  get_init_size
  (<a href = "#size_type3735929547">size_type</a> suggested_size) <b>const</b></pre>


</td>

<td>
<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>


</td>

</tr>

<tr>
<td>
<pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
  get_nearest_larger_size
  (<a href = "#size_type3735929547">size_type</a> cur_size) <b>const</b></pre>


</td>

<td>
<p>Given <font color = "#666666"><tt>cur_size</tt></font>, the current size, returns a size that is larger.</p>


</td>

</tr>

<tr>
<td>
<pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
  get_nearest_smaller_size
  (<a href = "#size_type3735929547">size_type</a> cur_size) <b>const</b></pre>


</td>

<td>
<p>Given <font color = "#666666"><tt>cur_size</tt></font>, the current size, returns a size that is smaller.</p>


</td>

</tr>

</table>



</body>

</html>