what does iterator do in c++ code example Example: declaring iterator in cpp vector<int>::iterator ptr;