Commit d72d1b57 authored by Sumeet Khullar's avatar Sumeet Khullar Committed by Facebook GitHub Bot

Revert D22027490: Specialize F14Table default constructor to avoid reserve() instantiation

Differential Revision:
D22027490

Original commit changeset: 964d9fa19ca9

fbshipit-source-id: 2c92ea47c64450cb031be4a6df3c3be4901500b7
parent 61a434e9
......@@ -105,7 +105,8 @@ class F14BasicMap {
public:
//// PUBLIC - Member functions
F14BasicMap() noexcept(Policy::kDefaultConstructIsNoexcept) : table_{} {}
F14BasicMap() noexcept(Policy::kDefaultConstructIsNoexcept)
: F14BasicMap(0) {}
explicit F14BasicMap(
std::size_t initialCapacity,
......
......@@ -99,7 +99,8 @@ class F14BasicSet {
public:
//// PUBLIC - Member functions
F14BasicSet() noexcept(Policy::kDefaultConstructIsNoexcept) : table_{} {}
F14BasicSet() noexcept(Policy::kDefaultConstructIsNoexcept)
: F14BasicSet(0) {}
explicit F14BasicSet(
std::size_t initialCapacity,
......
......@@ -938,11 +938,6 @@ class F14Table : public Policy {
}
public:
// Equivalent to F14Table(0, ...), but implemented separately to avoid forcing
// a reserve() instantiation in the common case.
F14Table() noexcept(Policy::kDefaultConstructIsNoexcept)
: Policy{Hasher{}, KeyEqual{}, Alloc{}} {}
F14Table(
std::size_t initialCapacity,
Hasher const& hasher,
......
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