iterator in cpp declarations code example Example: declaring iterator in cpp vector<int>::iterator ptr;