[Webkit-unassigned] [Bug 177732] There should be a version of copyToVector that returns a Vector, rather than using an out parameter
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 2 10:19:47 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=177732
Chris Dumez <cdumez at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cdumez at apple.com
--- Comment #4 from Chris Dumez <cdumez at apple.com> ---
The templated out parameter is convenient for when you want to copy to a vector that contains items of another type, which happens fairly commonly.
E.g. you have a HashSet<Node*> and want to copy to a Vector<RefPtr<Node>>.
Not sure how we can make this work:
HashSet<Node*> nodes;
Vector<RefPtr<Node>> nodesCopy = copyToVector(nodes);
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171002/de44e7d2/attachment-0001.html>
More information about the webkit-unassigned
mailing list