how to use the #iterator in cpp code example Example: declaring iterator in cpp vector<int>::iterator ptr;