Allow WTF::map to take function as parameter
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Sep 2017 18:56:11 +0000 (18:56 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Sep 2017 18:56:11 +0000 (18:56 +0000)
commita2ec779aa1e96d7d0ef8aeb70b1740a70913ea3b
treeaa466a3868aad55b9444b532a17e0bcc40ed7e3b
parentb77a2456ca1c3eaffd9556da4a3ef3df9173df44
Allow WTF::map to take function as parameter
https://bugs.webkit.org/show_bug.cgi?id=176909

Patch by Youenn Fablet <youenn@apple.com> on 2017-09-14
Reviewed by Jer Noble.

Source/WTF:

* wtf/Vector.h:
(WTF::map):

Tools:

* TestWebKitAPI/Tests/WTF/Vector.cpp:
(TestWebKitAPI::multiplyByTwo):
(TestWebKitAPI::TEST):
(TestWebKitAPI::multiplyByTwoMoveOnly):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/Vector.h
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WTF/Vector.cpp