search for: just_after_insertion_point

Displaying 1 result from an estimated 1 matches for "just_after_insertion_point".

2016 Aug 17
5
code to sort otherwise-unsortable "ilist"s, e.g. symbol tables
...finished the job // first, find the insertion point for the first-past-the-frontier elem. iterator insertion_point{begin()}; while ( ! comp(*just_after_last_sorted, *insertion_point) ) ++insertion_point; // set up some needed iterators const iterator just_after_insertion_point{std::next(insertion_point)}; iterator prev_elem_checked_for_order_in_sublist_to_splice{ just_after_last_sorted}; iterator just_after_last_elem_in_sublist_to_splice{std::next(just_after_last_sorted)}; // try to make {the sublist to be spliced} as long as it can be while...