different type of iterator code example Example: declaring iterator in cpp vector<int>::iterator ptr;