| Summary: | Add an initializer list constructor to Deque | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Anders Carlsson <andersca> | ||||
| Component: | New Bugs | Assignee: | 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
Anders Carlsson
2015-02-13 10:20:38 PST
Created attachment 246530 [details]
Patch
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. Committed r180059: <http://trac.webkit.org/changeset/180059> |