string

Various funstions are included for debugging the string class.

assign

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

push_back

If capacity is not exceeded no iterators are invalidated, else all iterators are invalidated.

pop_back

Only the iterators to the erased element is invalidated.

insert

If capacity is not exceeded iterators to elements beyond the insertion point are invalidated, else all iterators are invalidated.

erase

Iterators to elements at and beyond the erased elements are invalidated.

resize

If capacity is exceeded all iterators are invalidated, else iterators to any 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.