I have a giant map and using iterator and lower_bound functions I have been able to narrow down to a range relevant to me.

Now I want to copy the locations from first_iterator to last_iterator to another map or rather create a new map from first_iterator to last_iterator. Is there an automatic way of doing it instead of me writing a for loop?

Thanks guys