DelSet was used to avoid invalidating the current iterator while
modifying the map we are iterating over.
By using an early_inc_range, (which increments to iterator 'early',
allowing us to remove the current element), we can get rid of DelSet.
Differential D78420
[VectorUtils] Use early_inc_range instead of DelSet (NFC). fhahn on Apr 18 2020, 2:43 AM. Authored by
Details DelSet was used to avoid invalidating the current iterator while By using an early_inc_range, (which increments to iterator 'early',
Diff Detail
Event TimelineComment Actions Yes, that's indeed better, thanks! (Maybe worth adding a comment that releaseGroup(Group) erases Group from InterleaveGroups, to explain the use of make_early_inc_range; if it's not obvious.) |