Hide _S_n_primes from user code

François Dumont frs.dumont@gmail.com
Wed Apr 22 20:11:00 GMT 2015


With the patch this time.


On 22/04/2015 21:39, François Dumont wrote:
> Hello
>
>     Here is a rather trivial patch, just code cleanup. Since we export 
> _Prime_rehash_policy we do not need to expose the _S_n_primes anymore.
>
>     * include/bits/hashtable_policy.h 
> (_Prime_rehash_policy::_S_n_primes):
>     Delete.
>     * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
>     Remove usage of latter and compute size of the prime numbers array
>     locally.
>
> Tested under Linux x86_64.
>
> Ok to commit ?
>
> François
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hashtable.patch
Type: text/x-patch
Size: 1215 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150422/b3ebbc4e/attachment.bin>


More information about the Libstdc++ mailing list