public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Hide _S_n_primes from user code
@ 2015-04-22 19:39 François Dumont
  2015-04-22 20:11 ` François Dumont
  2015-04-22 20:13 ` Marek Polacek
  0 siblings, 2 replies; 4+ messages in thread
From: François Dumont @ 2015-04-22 19:39 UTC (permalink / raw)
  To: libstdc++, gcc-patches

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-27 11:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-22 19:39 Hide _S_n_primes from user code François Dumont
2015-04-22 20:11 ` François Dumont
2015-04-27 11:32   ` Jonathan Wakely
2015-04-22 20:13 ` Marek Polacek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).