vector<int> num = {1, 2, 3, 4, 5}; vector<int>::iterator iter; // iter points to num[0] iter = num.begin();
// iter points to the last element of num iter = num.end() - 1;