Bug 262935 - Introduce Vector::appendContainerWithMapping(container, mapFunction)
Summary: Introduce Vector::appendContainerWithMapping(container, mapFunction)
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-09 20:38 PDT by Chris Dumez
Modified: 2023-10-10 10:46 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2023-10-09 20:38:08 PDT
Introduce Vector::appendContainerWithMapping(container, mapFunction) and adopt throughout the code base to reduce further the use of Vector::uncheckedAppend().
This is similar to WTF::map() but can be used on an already constructor vector, potentially containing items already.
Comment 1 Chris Dumez 2023-10-09 20:39:44 PDT
Pull request: https://github.com/WebKit/WebKit/pull/18880
Comment 2 EWS 2023-10-10 10:45:19 PDT
Committed 269155@main (a9eaa105ceee): <https://commits.webkit.org/269155@main>

Reviewed commits have been landed. Closing PR #18880 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-10-10 10:46:14 PDT
<rdar://problem/116747088>