what are different types of iterators code example Example: declaring iterator in cpp vector<int>::iterator ptr;