Closed Bug 1627198 Opened 4 years ago Closed 4 years ago

nsTHashtable should provide STL-style iterators to enable range-based for and the use of STL-style algorithms

Categories

(Core :: MFBT, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: sg, Assigned: sg)

References

Details

Attachments

(1 file)

nsTHashtable should provide STL-style iterators to enable range-based for and the use of STL-style algorithms. This is actually a low-hanging fruit, as nsBaseHashtable already provides these, and it seems they can be simply pulled up into nsTHashtable.

This makes nsTHashtable usable with range-based for and STL-style algorithms.

Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b545e60f385c
Make nsTHashtable a STL-style range. r=froydnj

The issue was with the other patch landing with this. Both have relanded now.

Flags: needinfo?(sgiesecke)
Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/829e5882cd9b
Make nsTHashtable a STL-style range. r=froydnj
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Depends on: 1149833
See Also: → 1149833
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: