This program illustrates the use of member functions clear(), erase(), pop_back() and pop_front() for deque objects. Press Enter to continue ... For d we have ... Size = 10 Contents: 1 2 3 4 5 6 7 8 9 10 Press Enter to continue ... First, we delete the third component of d using this call to erase(): p = d.erase(d.begin()+2); and then display the remaining values in d. Size = 9 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 d using this call to erase(): p = d.erase(d.begin()+2, d.begin()+7); and then display the remaining values in d. Size = 4 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 d (using d.pop_back()), and display again to confirm. Size = 3 Contents: 1 2 9 Press Enter to continue ... Then we remove a component from the front of d (using d.pop_front()), and display again to confirm. Size = 2 Contents: 2 9 Press Enter to continue ... Finally, we clear d and display once again to confirm: Size = 0 Contents: Press Enter to continue ...