add note of stl iterator invalidation