This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Hide _S_n_primes from user code
- From: Marek Polacek <polacek at redhat dot com>
- To: François Dumont <frs dot dumont at gmail dot com>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 22 Apr 2015 22:12:53 +0200
- Subject: Re: Hide _S_n_primes from user code
- Authentication-results: sourceware.org; auth=none
- References: <5537F904 dot 4010405 at gmail dot com>
On Wed, Apr 22, 2015 at 09:39:48PM +0200, 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 ?
The patch is missing :).
Marek