Commit 9103d8e8 authored by Mark Santaniello's avatar Mark Santaniello Committed by Facebook GitHub Bot

Auto-reserve initializer_list operator=

Summary: Enable auto-reserve for operator=(std::initializer_list).

Reviewed By: yfeldblum, shixiao

Differential Revision: D32233038

fbshipit-source-id: ae16a5508dcae5957ea44404ac55d489a14937af
parent 094faa5f
......@@ -209,7 +209,7 @@ class F14BasicMap {
F14BasicMap& operator=(std::initializer_list<value_type> ilist) {
clear();
bulkInsert(ilist.begin(), ilist.end(), false);
bulkInsert(ilist.begin(), ilist.end(), true);
return *this;
}
......
......@@ -202,7 +202,7 @@ class F14BasicSet {
F14BasicSet& operator=(std::initializer_list<value_type> ilist) {
clear();
bulkInsert(ilist.begin(), ilist.end(), false);
bulkInsert(ilist.begin(), ilist.end(), true);
return *this;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment