The C++ standard specifies very precise iterator invalidation semantics for the methods of standard container classes like std::vector. For example, it specifies that vector::erase(iterator) only invalidates iterators at or after the point of erasure. nsTArray behaves similarly to std::vector for most operations, but does not document their iterator invalidation semantics. I think it would be good if it did.
You need to log in before you can comment on or make changes to this bug.