gcc/libstdc++-v3/include/tr1
François Dumont 29dbb034cb re PR libstdc++/71181 (Reserving in unordered_map doesn't reserve enough)
2016-06-20  François Dumont  <fdumont@gcc.gnu.org>

	PR libstdc++/71181
	* include/tr1/hashtable_policy.h
	(_Prime_rehash_policy::_M_next_bkt): Make past-the-end iterator
	dereferenceable to avoid check on lower_bound result.
	(_Prime_rehash_policy::_M_bkt_for_elements): Call latter.
	(_Prime_rehash_policy::_M_need_rehash): Likewise.
	* src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
	Always return a value greater than input value. Set _M_next_resize to
	max value when reaching highest prime number.
	* src/shared/hashtable-aux.cc (__prime_list): Add comment about sentinel
	being now useless.
	* testsuite/23_containers/unordered_set/hash_policy/71181.cc: New.
	* testsuite/23_containers/unordered_set/hash_policy/power2_rehash.cc
	(test02): New.
	* testsuite/23_containers/unordered_set/hash_policy/prime_rehash.cc: New.
	* testsuite/23_containers/unordered_set/hash_policy/rehash.cc:
	Fix indentation.

From-SVN: r237617
2016-06-20 20:04:25 +00:00
..
array
bessel_function.tcc
beta_function.tcc
ccomplex
cctype
cfenv
cfloat
cinttypes
climits
cmath
complex
complex.h
cstdarg
cstdbool
cstdint
cstdio
cstdlib
ctgmath
ctime
ctype.h
cwchar
cwctype
ell_integral.tcc
exp_integral.tcc
fenv.h
float.h
functional
functional_hash.h
gamma.tcc
hashtable_policy.h
hashtable.h
hypergeometric.tcc
inttypes.h
legendre_function.tcc
limits.h
math.h
memory
modified_bessel_func.tcc
poly_hermite.tcc
poly_laguerre.tcc
random
random.h
random.tcc
regex
riemann_zeta.tcc
shared_ptr.h
special_function_util.h
stdarg.h
stdbool.h
stdint.h
stdio.h
stdlib.h
tgmath.h
tuple
type_traits
unordered_map
unordered_map.h
unordered_set
unordered_set.h
utility
wchar.h
wctype.h