gcc/libstdc++-v3/testsuite/23_containers
Jonathan Wakely 437f43cc78 PR67085 pass comparison functions by reference in heap algorithms
PR libstdc++/67085
	* include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
	converting constructors from _Iter_less_iter.
	(_Iter_comp_val, _Val_comp_iter): Add converting constructors from
	_Iter_comp_iter.
	(__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
	(__val_comp_iter(_Iter_comp_iter<C>): Likewise.
	* include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
	(__make_heap, __sort_heap): Change _Compare parameters to references.
	(__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
	(__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
	functions as lvalues.
	(is_heap): Call __is_heap_until directly to avoid copying __comp.
	* testsuite/23_containers/priority_queue/67085.cc: Adjust test to
	count copies during construction with empty sequence.

From-SVN: r244656
2017-01-19 23:07:52 +00:00
..
array Skip tests that are incompatible with Profile Mode 2017-01-14 11:55:22 +00:00
bitset Update copyright years. 2017-01-01 13:07:43 +01:00
deque Update copyright years. 2017-01-01 13:07:43 +01:00
forward_list Update copyright years. 2017-01-01 13:07:43 +01:00
headers Update copyright years. 2017-01-01 13:07:43 +01:00
list PR libstdc++/78389 fix backwards size adjustments. 2017-01-16 13:36:33 +02:00
map Skip tests that are incompatible with Profile Mode 2017-01-14 11:55:22 +00:00
multimap Skip tests that are incompatible with Profile Mode 2017-01-14 11:55:22 +00:00
multiset Skip tests that are incompatible with Profile Mode 2017-01-14 11:55:22 +00:00
priority_queue PR67085 pass comparison functions by reference in heap algorithms 2017-01-19 23:07:52 +00:00
queue PR77528 partially revert r244278 and define default constructors 2017-01-12 17:28:36 +00:00
set Skip tests that are incompatible with Profile Mode 2017-01-14 11:55:22 +00:00
stack PR77528 partially revert r244278 and define default constructors 2017-01-12 17:28:36 +00:00
unordered_map Skip tests that are incompatible with Profile Mode 2017-01-14 11:55:22 +00:00
unordered_multimap Skip tests that are incompatible with Profile Mode 2017-01-14 11:55:22 +00:00
unordered_multiset Skip tests that are incompatible with Profile Mode 2017-01-14 11:55:22 +00:00
unordered_set Skip tests that are incompatible with Profile Mode 2017-01-14 11:55:22 +00:00
vector Skip tests that are incompatible with Profile Mode 2017-01-14 11:55:22 +00:00