Bug 262935

Summary: Introduce Vector::appendContainerWithMapping(container, mapFunction)
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web Template FrameworkAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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>