gcc/libstdc++-v3
François Dumont d916538965 libstdc++: Improve unordered containers == operator (PR 91263)
Avoid comparing elements with operator== multiple times by replacing
uses of find and equal_range with equivalent inlined code that uses
operator== instead of the container's equality comparison predicate.
This is valid because the standard requires that operator== is a
refinement of the equality predicate.

Also replace the _S_is_permutation function with std::is_permutation,
which wasn't yet implemented when this code was first written.

	PR libstdc++/91263
	* include/bits/hashtable.h (_Hashtable<>): Make _Equality<> friend.
	* include/bits/hashtable_policy.h: Include <bits/stl_algo.h>.
	(_Equality_base): Remove.
	(_Equality<>::_M_equal): Review implementation. Use
	std::is_permutation.
	* testsuite/23_containers/unordered_multiset/operators/1.cc
	(Hash, Equal, test02, test03): New.
	* testsuite/23_containers/unordered_set/operators/1.cc
	(Hash, Equal, test02, test03): New.
2020-01-16 14:39:05 +00:00
..
config libstdc++: Define memory resource key functions non-inline (PR93208) 2020-01-09 13:18:20 +00:00
doc rename local _C2 identifiers in stl map header files 2020-01-09 23:00:50 +00:00
include libstdc++: Improve unordered containers == operator (PR 91263) 2020-01-16 14:39:05 +00:00
libsupc++ libstdc++: Define __cpp_lib_three_way_comparison conditionally 2020-01-06 12:06:41 +00:00
po Update copyright years. 2020-01-01 12:51:42 +01:00
python Update copyright years. 2020-01-01 12:51:42 +01:00
scripts Update copyright years. 2020-01-01 12:51:42 +01:00
src libstdc++: Define memory resource key functions non-inline (PR93208) 2020-01-09 13:18:20 +00:00
testsuite libstdc++: Improve unordered containers == operator (PR 91263) 2020-01-16 14:39:05 +00:00
acinclude.m4 VxWorks has_nanosleep for libstdc++ enable-libstdcxx-time auto 2019-12-30 22:36:14 +00:00
aclocal.m4
ChangeLog libstdc++: Improve unordered containers == operator (PR 91263) 2020-01-16 14:39:05 +00:00
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
ChangeLog-2019 libstdc++: Fix whitespace in ChangeLog-2019 2020-01-09 21:31:35 +00:00
config.h.in libstdc++: Add full steady_clock support to shared_timed_mutex 2019-12-02 16:23:10 +00:00
configure VxWorks has_nanosleep for libstdc++ enable-libstdcxx-time auto 2019-12-30 22:36:14 +00:00
configure.ac libstdc++: Add full steady_clock support to shared_timed_mutex 2019-12-02 16:23:10 +00:00
configure.host
crossconfig.m4 Define HAVE_ for math long double functions declared in vxworks headers 2019-12-25 06:43:22 +00:00
fragment.am
linkage.m4
Makefile.am Update copyright years. 2020-01-01 12:51:42 +01:00
Makefile.in
README

file: libstdc++-v3/README

New users may wish to point their web browsers to the file
index.html in the 'doc/html' subdirectory.  It contains brief
building instructions and notes on how to configure the library in
interesting ways.