This program illustrates the use of member functions clear(), erase(), and pop_back() for vector objects. Press Enter to continue ... For v we have ... Size = 10 Capacity = 10 Contents: 1 2 3 4 5 6 7 8 9 10 Press Enter to continue ... First, we delete the third component of v using this call to erase(): p = v.erase(v.begin()+2); and then display the remaining values in v. Size = 9 Capacity = 10 Contents: 1 2 4 5 6 7 8 9 10 Press Enter to continue ... The iterator returned by the above call to erase() points to 4. Press Enter to continue ... Next, we delete the 3rd through 7th components of v using this call to erase(): p = v.erase(v.begin()+2, v.begin()+7); and then display the remaining values in v. Size = 4 Capacity = 10 Contents: 1 2 9 10 Press Enter to continue ... The iterator returned by the above call to erase() points to 9. Press Enter to continue ... Now we remove a component from the end of v (using v.pop_back()), and display again to confirm. Size = 3 Capacity = 10 Contents: 1 2 9 Press Enter to continue ... Finally, we clear v and display once again to confirm: Size = 0 Capacity = 10 Contents: Press Enter to continue ...