gcc/libstdc++-v3/testsuite
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
..
17_intro
18_support
19_diagnostics
20_util Provide swappable traits (p0185r1) 2016-06-16 16:07:19 +01:00
21_strings
22_locale
23_containers re PR libstdc++/71181 (Reserving in unordered_map doesn't reserve enough) 2016-06-20 20:04:25 +00:00
24_iterators
25_algorithms libstdc++/71545 fix debug checks in binary search algorithms 2016-06-17 19:28:34 +01:00
26_numerics
27_io
28_regex
29_atomics
30_threads
abi
backward
config
data
decimal
experimental libstdc++/71320 Add or remove file permissions correctly 2016-06-06 16:50:01 +01:00
ext
lib Enable dg-reqire-sharedlib on Solaris 2016-05-05 19:54:42 +00:00
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters
libstdc++-xmethods
performance c++config (_GLIBCXX14_USE_CONSTEXPR): New. 2016-05-24 20:55:57 +00:00
special_functions
tr1 Remove trailing whitespace from libstdc++-v3 files 2016-04-29 17:11:43 +01:00
tr2
util libstdc++/71545 fix debug checks in binary search algorithms 2016-06-17 19:28:34 +01:00
Makefile.am
Makefile.in