Various funstions are included for debugging the deque class.
All assign methods (including operator=) invalidate all iterators.
Invalidates all iterators.
Only the iterators to the erased elements are invalidated.
All iterators are invalidated.
If erasing at either end, only iterators to elements erased are invalidated, else all iterators are invalidated.
If the size increases, all iterators are invalidated. Else only iterators to the erased elements are invalidated.
Invalidates all iterators.
Iterators remain valid, but they now point into the swapped container.
The index operator is range checked just like the at() method.