2022-02-07 22:42:53 +01:00
|
|
|
//
|
2024-01-01 01:07:21 +01:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2024
|
2022-02-07 22:42:53 +01:00
|
|
|
//
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
//
|
2022-02-07 20:40:28 +01:00
|
|
|
#pragma once
|
|
|
|
|
2022-03-01 13:16:57 +01:00
|
|
|
//#include "td/utils/FlatHashMapChunks.h"
|
2022-06-29 23:59:27 +02:00
|
|
|
#include "td/utils/FlatHashTable.h"
|
2022-11-23 17:37:32 +01:00
|
|
|
#include "td/utils/HashTableUtils.h"
|
2022-06-29 23:59:27 +02:00
|
|
|
#include "td/utils/MapNode.h"
|
2022-02-07 20:40:28 +01:00
|
|
|
|
2022-02-23 13:50:58 +01:00
|
|
|
#include <functional>
|
2022-06-29 23:59:27 +02:00
|
|
|
//#include <unordered_map>
|
2022-02-18 21:04:25 +01:00
|
|
|
|
2022-02-07 20:40:28 +01:00
|
|
|
namespace td {
|
2022-02-23 13:50:58 +01:00
|
|
|
|
2022-11-23 17:37:32 +01:00
|
|
|
template <class KeyT, class ValueT, class HashT = Hash<KeyT>, class EqT = std::equal_to<KeyT>>
|
2024-03-21 16:43:47 +01:00
|
|
|
using FlatHashMap = FlatHashTable<MapNode<KeyT, ValueT, EqT>, HashT, EqT>;
|
2022-02-21 03:49:59 +01:00
|
|
|
//using FlatHashMap = FlatHashMapChunks<KeyT, ValueT, HashT, EqT>;
|
2022-06-29 23:59:27 +02:00
|
|
|
//using FlatHashMap = std::unordered_map<KeyT, ValueT, HashT, EqT>;
|
2022-02-11 17:40:16 +01:00
|
|
|
|
2022-02-07 20:40:28 +01:00
|
|
|
} // namespace td
|