Disable FlatHashTable for release.
This commit is contained in:
parent
f1ffe765a5
commit
f993bebc2f
@ -6,23 +6,23 @@
|
||||
//
|
||||
#pragma once
|
||||
|
||||
#include "td/utils/FlatHashMapChunks.h"
|
||||
#include "td/utils/FlatHashMapLinear.h"
|
||||
//#include "td/utils/FlatHashMapChunks.h"
|
||||
//#include "td/utils/FlatHashMapLinear.h"
|
||||
|
||||
#include <functional>
|
||||
//#include <unordered_map>
|
||||
//#include <unordered_set>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
|
||||
namespace td {
|
||||
|
||||
template <class KeyT, class ValueT, class HashT = std::hash<KeyT>, class EqT = std::equal_to<KeyT>>
|
||||
using FlatHashMap = FlatHashMapImpl<KeyT, ValueT, HashT, EqT>;
|
||||
//using FlatHashMap = FlatHashMapImpl<KeyT, ValueT, HashT, EqT>;
|
||||
//using FlatHashMap = FlatHashMapChunks<KeyT, ValueT, HashT, EqT>;
|
||||
//using FlatHashMap = std::unordered_map<KeyT, ValueT, HashT, EqT>;
|
||||
using FlatHashMap = std::unordered_map<KeyT, ValueT, HashT, EqT>;
|
||||
|
||||
template <class KeyT, class HashT = std::hash<KeyT>, class EqT = std::equal_to<KeyT>>
|
||||
using FlatHashSet = FlatHashSetImpl<KeyT, HashT, EqT>;
|
||||
//using FlatHashSet = FlatHashSetImpl<KeyT, HashT, EqT>;
|
||||
//using FlatHashSet = FlatHashSetChunks<KeyT, HashT, EqT>;
|
||||
//using FlatHashSet = std::unordered_set<KeyT, HashT, EqT>;
|
||||
using FlatHashSet = std::unordered_set<KeyT, HashT, EqT>;
|
||||
|
||||
} // namespace td
|
||||
|
@ -174,7 +174,6 @@ TEST(FlatHashMap, basic) {
|
||||
|
||||
ASSERT_EQ("a", kv.find("a")->first);
|
||||
ASSERT_EQ("b", kv.find("a")->second);
|
||||
ASSERT_EQ("a", kv.find("a")->key());
|
||||
kv.find("a")->second = "c";
|
||||
ASSERT_EQ("c", kv.find("a")->second);
|
||||
ASSERT_EQ("c", kv["a"]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user