Closed Bug 1761536 Opened 2 years ago Closed 2 years ago

Add a `value_type` typedef to nsTArray

Categories

(Core :: XPCOM, task)

task

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: nika, Assigned: nika)

Details

Attachments

(2 files)

This allows the type to appear slightly more like std::vector for generic code, allowing it to be used in some generic code designed for stl collections.

There weren't that many uses of the existing typedef, so it seemed like
it might be worthwhile to just replace all uses of the previous typedef
with the stl-like one.

Attachment #9270302 - Attachment description: Bug 1761536 - Add a `value_type` typedef to nsTArray, r=#xpcom-reviewers → Bug 1761536 - Part 1: Add a `value_type` typedef to nsTArray, r=#xpcom-reviewers
Pushed by nlayzell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6402ec96aa4a
Part 1: Add a `value_type` typedef to nsTArray, r=xpcom-reviewers,mccr8
https://hg.mozilla.org/integration/autoland/rev/5e5c1c1c2630
Part 2: Replace nsTArray::elem_type with value_type, r=mccr8
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: