C
catphive.lists
Is there a way to call erase(iter) on a list without invalidating the
iterator? Can I make a copy of an iterator and then move forward the
original without moving the copy? I'm aware of the existence of
remove_if, but in the case I'm dealing with it would be much more
natural to use an iterator.
iterator? Can I make a copy of an iterator and then move forward the
original without moving the copy? I'm aware of the existence of
remove_if, but in the case I'm dealing with it would be much more
natural to use an iterator.