Document the iterator invalidation semantics of nsTArray methods

NEW
Unassigned

Status

()

Core
XPCOM
3 years ago
3 years ago

People

(Reporter: botond, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox42 affected)

Details

(Reporter)

Description

3 years ago
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.