Bug 141565

Summary: Add an initializer list constructor to Deque
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cmarcelo, commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch kling: review+

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.