gcc/libstdc++-v3/include
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
..
backward Update copyright years. 2016-01-04 15:30:50 +01:00
bits libstdc++/71545 fix debug checks in binary search algorithms 2016-06-17 19:28:34 +01:00
c Update copyright years. 2016-01-04 15:30:50 +01:00
c_compatibility Don't define guard macros when doing #include_next in math.h and stdlib.h 2016-02-01 11:13:40 +00:00
c_global re PR libstdc++/69881 (with gcc-6 of today building gcc-4.9 fails) 2016-02-23 15:57:09 +00:00
c_std Update copyright years. 2016-01-04 15:30:50 +01:00
debug 2016-06-16 François Dumont <fdumont@gcc.gnu.org> 2016-06-16 20:34:08 +00:00
decimal Update copyright years. 2016-01-04 15:30:50 +01:00
experimental Test begin and end functions for directory iterators 2016-05-10 16:39:20 +01:00
ext Avoid -Wsign-compare warnings in std::to_string() 2016-04-18 16:43:50 +01:00
parallel Update copyright years. 2016-01-04 15:30:50 +01:00
precompiled Implement TR29124 C++ special Math Functions. 2016-01-14 18:12:43 +00:00
profile Update copyright years. 2016-01-04 15:30:50 +01:00
std Provide swappable traits (p0185r1) 2016-06-16 16:07:19 +01:00
tr1 re PR libstdc++/71181 (Reserving in unordered_map doesn't reserve enough) 2016-06-20 20:04:25 +00:00
tr2 Update copyright years. 2016-01-04 15:30:50 +01:00
Makefile.am Makefile.am (install-freestanding-headers): Add concept_check.h and move.h to the installed headers. 2016-03-23 00:41:52 +00:00
Makefile.in Makefile.am (install-freestanding-headers): Add concept_check.h and move.h to the installed headers. 2016-03-23 00:41:52 +00:00