yes. It should be ok as the iterator is a forward itearator only