RESOLVED FIXED 141565
Add an initializer list constructor to Deque
https://bugs.webkit.org/show_bug.cgi?id=141565
Summary Add an initializer list constructor to Deque
Anders Carlsson
Reported 2015-02-13 10:20:38 PST
Add an initializer list constructor to Deque
Attachments
Patch (2.93 KB, patch)
2015-02-13 10:25 PST, Anders Carlsson
kling: review+
Anders Carlsson
Comment 1 2015-02-13 10:25:18 PST
Andreas Kling
Comment 2 2015-02-13 10:29:25 PST
Comment on attachment 246530 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=246530&action=review r=me > Source/WTF/wtf/Deque.h:281 > + for (auto& element : initializerList) > + append(element); In a perfect world this would use some kind of reserveInitialCapacity() + uncheckedAppend() combo.
Anders Carlsson
Comment 3 2015-02-13 10:46:12 PST
Note You need to log in before you can comment on or make changes to this bug.