[Webkit-unassigned] [Bug 9047] New: Would like a flavor of Vector::remove that took an iterator instead of an index

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Mon May 22 14:16:17 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=9047

           Summary: Would like a flavor of Vector::remove that took an
                    iterator instead of an index
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: sullivan at apple.com


Currently the only flavor of Vector::remove() takes an index. A common idiom
when working with Vectors is to iterate through the items using
Vector::iterator(). It's inconvenient to use the existing Vector::remove() when
you're iterating, since you're not keeping track of an index. It would
therefore be convenient to have a flavor of Vector::remove() that takes an
iterator.

This came up for me when converting uses of DeprecatedValueList and
DeprecatedValueListIterator to Vector to address bug 9038.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list