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 |
---|---|---|
.. | ||
Makefile.am | Loading commit data... | |
Makefile.in | Loading commit data... | |
chrono.cc | Loading commit data... | |
codecvt.cc | Loading commit data... | |
compatibility-atomic-c++0x.cc | Loading commit data... | |
compatibility-c++0x.cc | Loading commit data... | |
compatibility-chrono.cc | Loading commit data... | |
compatibility-condvar.cc | Loading commit data... | |
compatibility-thread-c++0x.cc | Loading commit data... | |
condition_variable.cc | Loading commit data... | |
cow-fstream-inst.cc | Loading commit data... | |
cow-locale_init.cc | Loading commit data... | |
cow-shim_facets.cc | Loading commit data... | |
cow-sstream-inst.cc | Loading commit data... | |
cow-stdexcept.cc | Loading commit data... | |
cow-string-inst.cc | Loading commit data... | |
cow-wstring-inst.cc | Loading commit data... | |
ctype.cc | Loading commit data... | |
cxx11-hash_tr1.cc | Loading commit data... | |
cxx11-ios_failure.cc | Loading commit data... | |
cxx11-locale-inst.cc | Loading commit data... | |
cxx11-shim_facets.cc | Loading commit data... | |
cxx11-stdexcept.cc | Loading commit data... | |
cxx11-wlocale-inst.cc | Loading commit data... | |
debug.cc | Loading commit data... | |
ext11-inst.cc | Loading commit data... | |
fstream-inst.cc | Loading commit data... | |
functexcept.cc | Loading commit data... | |
functional.cc | Loading commit data... | |
futex.cc | Loading commit data... | |
future.cc | Loading commit data... | |
hash_c++0x.cc | Loading commit data... | |
hashtable_c++0x.cc | Loading commit data... | |
ios-inst.cc | Loading commit data... | |
ios.cc | Loading commit data... | |
iostream-inst.cc | Loading commit data... | |
istream-inst.cc | Loading commit data... | |
limits.cc | Loading commit data... | |
locale-inst.cc | Loading commit data... | |
mutex.cc | Loading commit data... | |
ostream-inst.cc | Loading commit data... | |
placeholders.cc | Loading commit data... | |
random.cc | Loading commit data... | |
regex.cc | Loading commit data... | |
shared_ptr.cc | Loading commit data... | |
snprintf_lite.cc | Loading commit data... | |
sstream-inst.cc | Loading commit data... | |
streambuf-inst.cc | Loading commit data... | |
string-inst.cc | Loading commit data... | |
system_error.cc | Loading commit data... | |
thread.cc | Loading commit data... | |
wlocale-inst.cc | Loading commit data... | |
wstring-inst.cc | Loading commit data... |