I think it's a "quick and dirty" way to achieve strong exception safety: If one of the insertions go wrong, then the original range is never modified.