Re-land cl/328561880 absl::node_hash_map is now available in Chromium: https://chromium-review.googlesource.com/c/chromium/src/+/2379635 PiperOrigin-RevId: 329381168 Change-Id: Ic2b0658df07951ee23dedea97aa90a7a83349c68
diff --git a/common/platform/api/quiche_unordered_containers.h b/common/platform/api/quiche_unordered_containers.h index a53a206..764406e 100644 --- a/common/platform/api/quiche_unordered_containers.h +++ b/common/platform/api/quiche_unordered_containers.h
@@ -7,6 +7,7 @@ #include <functional> +#include "absl/container/node_hash_map.h" #include "net/quiche/common/platform/impl/quiche_unordered_containers_impl.h" namespace quiche { @@ -16,11 +17,13 @@ using QuicheDefaultHasher = QuicheDefaultHasherImpl<Key>; // A general-purpose unordered map. +// TODO(b/166325009): replace this in code with absl::node_hash_map and +// absl::flat_hash_map and delete this alias. template <typename Key, typename Value, typename Hash = QuicheDefaultHasher<Key>, typename Eq = std::equal_to<Key>> -using QuicheUnorderedMap = QuicheUnorderedMapImpl<Key, Value, Hash, Eq>; +using QuicheUnorderedMap = absl::node_hash_map<Key, Value, Hash, Eq>; } // namespace quiche