Open Bug 1178146 Opened 9 years ago Updated 2 years ago

Document the iterator invalidation semantics of nsTArray methods

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

Tracking Status
firefox42 --- affected

People

(Reporter: botond, Unassigned)

Details

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.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.