Presumably this is to avoid iterator invalidation? If so it's worth a comment.