2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
7 <title>hash_prime_size_policy Interface
14 <tt>hash_prime_size_policy
22 <p>A size policy whose sequence of sizes form a nearly-exponential sequence of primes.
27 <a href = "../../../../include/ext/pb_assoc/hash_policy.hpp"><tt>hash_policy.hpp</tt>
33 Public Types and Constants:
38 <a href = "#link1">General definitions.
53 <a href = "#link2">Constructors, destructor, and related.
68 <a href = "#link3">Size methods
81 <a name = "link1">General definitions.
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>
92 <pre><a name = "size_type3735929547">size_type</a></pre>
114 <a name = "link2">Constructors, destructor, and related.
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>
125 <pre><b>inline</b> <b>void</b>
127 (<font color = "olive">hash_prime_size_policy</font> &r_other)</pre>
133 <p>Swaps content.</p>
143 <a name = "link3">Size methods
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>
154 <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
156 (<a href = "#size_type3735929547">size_type</a> suggested_size) <b>const</b></pre>
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>
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>
179 <p>Given <font color = "#666666"><tt>cur_size</tt></font>, the current size, returns a size that is larger.</p>
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>
196 <p>Given <font color = "#666666"><tt>cur_size</tt></font>, the current size, returns a size that is smaller.</p>