deque

Various funstions are included for debugging the deque class.

assign

All assign methods (including operator=) invalidate all iterators.

push_front/back

Invalidates all iterators.

pop_front/back

Only the iterators to the erased elements are invalidated.

insert

All iterators are invalidated.

erase

If erasing at either end, only iterators to elements erased are invalidated, else all iterators are invalidated.

resize

If the size increases, all iterators are invalidated. Else only iterators to the erased elements are invalidated.

clear

Invalidates all iterators.

swap

Iterators remain valid, but they now point into the swapped container.

Remarks

The index operator is range checked just like the at() method.