3 ms·
What would be your solution with regard to iterator invalidation?
by dezgeg 3y ago
What would be your solution with regard to iterator invalidation?
- Dylan16807 3y agoThe simplest one is probably to count the number of iterators and refuse to reallocate when it's more than zero. Of course, many data structures could be adjusted so that iterators don't need to be invalidated.