[PATCH 3/5] libstdc++: keep subtree sizes in pb_ds binary search trees (PR 81806)

Xi Ruoyao xry111@mengyan1223.wang
Mon Jul 13 08:45:46 GMT 2020


> The second and third patch together resolve PR 81806.

The attached patch modifies split_finish to use the subtree size we maintained
in the previous patch, resolving libstdc++/81806.

libstdc++-v3/ChangeLog:

	PR libstdc++/81806
	* include/ext/pb_ds/detail/bin_search_tree_/split_join_fn_imps.hpp
	  (split_finish): Use maintained size, instead of calling
	  std::distance.
-- 
Xi Ruoyao <xry111@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-libstdc-use-maintained-size-when-split-pb_ds-binary-.patch
Type: text/x-patch
Size: 1351 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20200713/df08a621/attachment-0001.bin>


More information about the Libstdc++ mailing list