Closed Bug 1456875 Opened 6 years ago Closed 6 years ago

Allow range-based iteration of const LinkedLists

Categories

(Core :: MFBT, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(1 file)

Following on from bug 1212624, we should add const versions of LinkedList::begin() and end() to allow const LinkedLists to be used in range-based for loops.
Patch to add const versions of begin() and end().
Attachment #8970901 - Flags: review?(jwalden+bmo)
Blocks: 1456774
Attachment #8970901 - Flags: review?(jwalden+bmo) → review+
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/dded77ad7ac0
Add const iterators for LinkedList r=Waldo
https://hg.mozilla.org/mozilla-central/rev/dded77ad7ac0
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: