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
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| array | Loading commit data... | |
| bessel_function.tcc | Loading commit data... | |
| beta_function.tcc | Loading commit data... | |
| ccomplex | Loading commit data... | |
| cctype | Loading commit data... | |
| cfenv | Loading commit data... | |
| cfloat | Loading commit data... | |
| cinttypes | Loading commit data... | |
| climits | Loading commit data... | |
| cmath | Loading commit data... | |
| complex | Loading commit data... | |
| complex.h | Loading commit data... | |
| cstdarg | Loading commit data... | |
| cstdbool | Loading commit data... | |
| cstdint | Loading commit data... | |
| cstdio | Loading commit data... | |
| cstdlib | Loading commit data... | |
| ctgmath | Loading commit data... | |
| ctime | Loading commit data... | |
| ctype.h | Loading commit data... | |
| cwchar | Loading commit data... | |
| cwctype | Loading commit data... | |
| ell_integral.tcc | Loading commit data... | |
| exp_integral.tcc | Loading commit data... | |
| fenv.h | Loading commit data... | |
| float.h | Loading commit data... | |
| functional | Loading commit data... | |
| functional_hash.h | Loading commit data... | |
| gamma.tcc | Loading commit data... | |
| hashtable.h | Loading commit data... | |
| hashtable_policy.h | Loading commit data... | |
| hypergeometric.tcc | Loading commit data... | |
| inttypes.h | Loading commit data... | |
| legendre_function.tcc | Loading commit data... | |
| limits.h | Loading commit data... | |
| math.h | Loading commit data... | |
| memory | Loading commit data... | |
| modified_bessel_func.tcc | Loading commit data... | |
| poly_hermite.tcc | Loading commit data... | |
| poly_laguerre.tcc | Loading commit data... | |
| random | Loading commit data... | |
| random.h | Loading commit data... | |
| random.tcc | Loading commit data... | |
| regex | Loading commit data... | |
| riemann_zeta.tcc | Loading commit data... | |
| shared_ptr.h | Loading commit data... | |
| special_function_util.h | Loading commit data... | |
| stdarg.h | Loading commit data... | |
| stdbool.h | Loading commit data... | |
| stdint.h | Loading commit data... | |
| stdio.h | Loading commit data... | |
| stdlib.h | Loading commit data... | |
| tgmath.h | Loading commit data... | |
| tuple | Loading commit data... | |
| type_traits | Loading commit data... | |
| unordered_map | Loading commit data... | |
| unordered_map.h | Loading commit data... | |
| unordered_set | Loading commit data... | |
| unordered_set.h | Loading commit data... | |
| utility | Loading commit data... | |
| wchar.h | Loading commit data... | |
| wctype.h | Loading commit data... |