gcc/libstdc++-v3/include/debug
François Dumont 3a391adf7a libstdc++: Extend memcmp optimization in std::lexicographical_compare
Make the memcmp optimization work for std::deque iterators and safe
iterators.

Co-authored-by: Jonathan Wakely  <jwakely@redhat.com>

libstdc++-v3/ChangeLog:

2020-06-08  François Dumont  <fdumont@gcc.gnu.org>
	    Jonathan Wakely  <jwakely@redhat.com>

	* include/bits/deque.tcc (__lex_cmp_dit): New.
	(__lexicographical_compare_aux1): Define overloads for deque
	iterators.
	* include/bits/stl_algobase.h (__lexicographical_compare::__3way):
	New static member function.
	(__lexicographical_compare<true>::__3way): Likewise.
	(__lexicographical_compare<true>::__lc): Use __3way.
	(__lexicographical_compare_aux): Rename to
	__lexicographical_compare_aux1 and declare overloads for deque
	iterators.
	(__lexicographical_compare_aux): Define new forwarding function
	that calls __lexicographical_compare_aux1 and declare new overloads
	for safe iterators.
	(lexicographical_compare): Do not use __niter_base on
	parameters.
	* include/debug/safe_iterator.tcc
	(__lexicographical_compare_aux): Define overloads for safe
	iterators.
	* testsuite/25_algorithms/lexicographical_compare/1.cc: Add
	checks with random access iterators.
	* testsuite/25_algorithms/lexicographical_compare/deque_iterators/1.cc:
	New test.
2020-06-10 17:48:56 +01:00
..
array libstdc++: Define <=> for Debug Mode array 2020-02-27 15:13:16 +00:00
assertions.h Update copyright years. 2020-01-01 12:51:42 +01:00
bitset Update copyright years. 2020-01-01 12:51:42 +01:00
debug.h Update copyright years. 2020-01-01 12:51:42 +01:00
deque libstdc++: Make debug containers prefer copy ctor to base ctor (PR 90102) 2020-06-02 18:13:33 +01:00
formatter.h libstdc++: Fix redundant assignment (PR 94629) 2020-04-19 21:05:32 +01:00
forward_list libstdc++: Make debug containers prefer copy ctor to base ctor (PR 90102) 2020-06-02 18:13:33 +01:00
functions.h Update copyright years. 2020-01-01 12:51:42 +01:00
helper_functions.h libstdc++: Fix function that can't be constexpr in C++11 (PR 95289) 2020-05-23 18:27:35 +01:00
list libstdc++: Make debug containers prefer copy ctor to base ctor (PR 90102) 2020-06-02 18:13:33 +01:00
macros.h Update copyright years. 2020-01-01 12:51:42 +01:00
map Update copyright years. 2020-01-01 12:51:42 +01:00
map.h libstdc++: Make debug containers prefer copy ctor to base ctor (PR 90102) 2020-06-02 18:13:33 +01:00
multimap.h libstdc++: Make debug containers prefer copy ctor to base ctor (PR 90102) 2020-06-02 18:13:33 +01:00
multiset.h libstdc++: Make debug containers prefer copy ctor to base ctor (PR 90102) 2020-06-02 18:13:33 +01:00
safe_base.h Update copyright years. 2020-01-01 12:51:42 +01:00
safe_container.h Update copyright years. 2020-01-01 12:51:42 +01:00
safe_iterator.h libstdc++: Add comparison operators to sequence containers 2020-04-17 23:41:04 +01:00
safe_iterator.tcc libstdc++: Extend memcmp optimization in std::lexicographical_compare 2020-06-10 17:48:56 +01:00
safe_local_iterator.h Update copyright years. 2020-01-01 12:51:42 +01:00
safe_local_iterator.tcc Update copyright years. 2020-01-01 12:51:42 +01:00
safe_sequence.h Update copyright years. 2020-01-01 12:51:42 +01:00
safe_sequence.tcc Update copyright years. 2020-01-01 12:51:42 +01:00
safe_unordered_base.h Update copyright years. 2020-01-01 12:51:42 +01:00
safe_unordered_container.h Update copyright years. 2020-01-01 12:51:42 +01:00
safe_unordered_container.tcc Update copyright years. 2020-01-01 12:51:42 +01:00
set Update copyright years. 2020-01-01 12:51:42 +01:00
set.h libstdc++: Make debug containers prefer copy ctor to base ctor (PR 90102) 2020-06-02 18:13:33 +01:00
stl_iterator.h Update copyright years. 2020-01-01 12:51:42 +01:00
string libstdc++: Fix std::string error in Debug Mode 2020-02-27 15:13:16 +00:00
unordered_map libstdc++: Make debug containers prefer copy ctor to base ctor (PR 90102) 2020-06-02 18:13:33 +01:00
unordered_set libstdc++: Make debug containers prefer copy ctor to base ctor (PR 90102) 2020-06-02 18:13:33 +01:00
vector libstdc++: Make debug containers prefer copy ctor to base ctor (PR 90102) 2020-06-02 18:13:33 +01:00