gcc/libstdc++-v3/include/ext/pb_ds
Jonathan Wakely 75d359f759 PR libstdc++/62045 fix O(N) insertion in pd_ds binary heap
2017-03-15  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>

	PR libstdc++/62045
	* include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
	(is_heap): Remove.
	(push_heap): Remove the wrong checking using is_heap.
	(make_heap): Remove the assertion using is_heap.
	* include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
	(modify): Ditto.
	(resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
	calling make_heap.

2017-03-15  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/62045
	* testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
	New test.
	* testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
	error in comment.

From-SVN: r246173
2017-03-15 20:11:48 +00:00
..
detail PR libstdc++/62045 fix O(N) insertion in pd_ds binary heap 2017-03-15 20:11:48 +00:00
assoc_container.hpp Update copyright years. 2017-01-01 13:07:43 +01:00
exception.hpp Update copyright years. 2017-01-01 13:07:43 +01:00
hash_policy.hpp Update copyright years. 2017-01-01 13:07:43 +01:00
list_update_policy.hpp Update copyright years. 2017-01-01 13:07:43 +01:00
priority_queue.hpp Update copyright years. 2017-01-01 13:07:43 +01:00
tag_and_trait.hpp Update copyright years. 2017-01-01 13:07:43 +01:00
tree_policy.hpp Update copyright years. 2017-01-01 13:07:43 +01:00
trie_policy.hpp Update copyright years. 2017-01-01 13:07:43 +01:00