Closed Bug 1645429 Opened 5 years ago Closed 5 years ago

Replace custom implementation of ReverseIterator by std::reverse_iterator

Categories

(Core :: MFBT, task)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: sg, Assigned: sg)

Details

Attachments

(3 files, 1 obsolete file)

mozilla::ReverseIterator does not appear to provide benefits over std::reverse_iterator, but it would require some fixes to be a proper STL-style iterator. Therefore, its implementation should be replaced by the use of std::reverse_iterator.

Assignee: nobody → sgiesecke
Status: NEW → ASSIGNED
Attachment #9156309 - Attachment is obsolete: true
Attachment #9156308 - Attachment description: Bug 1645429 - Fix some glitches in iterator types. r=froydnj → Bug 1645429 - Use std::reverse_iterator instead of mozilla::ReverseIterator where possible. r=froydnj
Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/22a19cf66ef3 Use std::reverse_iterator instead of mozilla::ReverseIterator where possible. r=froydnj
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7734de6f12c6 Add tests for ReverseIterator and fix implementation of ReverseIterator::operator-. r=froydnj https://hg.mozilla.org/integration/autoland/rev/70be34453afb Do not use ReverseIterator in nsTObserverArray::NonObservingRange. r=froydnj
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: