how to create a new vector using iterators from a different vector code example Example: declaring iterator in cpp vector<int>::iterator ptr;