tdlight/tdutils/td/utils/FlatHashMap.h

25 lines
805 B
C
Raw Normal View History

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"
#include "td/utils/FlatHashTable.h"
#include "td/utils/HashTableUtils.h"
#include "td/utils/MapNode.h"
2022-02-07 20:40:28 +01:00
#include <functional>
//#include <unordered_map>
2022-02-18 21:04:25 +01:00
2022-02-07 20:40:28 +01:00
namespace td {
template <class KeyT, class ValueT, class HashT = Hash<KeyT>, class EqT = std::equal_to<KeyT>>
using FlatHashMap = FlatHashTable<MapNode<KeyT, ValueT>, HashT, EqT>;
2022-02-21 03:49:59 +01:00
//using FlatHashMap = FlatHashMapChunks<KeyT, ValueT, HashT, EqT>;
//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