//===----------------------------------------------------------------------===// // DuckDB // // duckdb/catalog/catalog_entry_map.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/common.hpp" #include "duckdb/common/unordered_set.hpp" #include "duckdb/common/unordered_map.hpp" namespace duckdb { class CatalogEntry; struct CatalogEntryHashFunction { uint64_t operator()(const reference &a) const { std::hash hash_func; return hash_func((void *)&a.get()); } }; struct CatalogEntryEquality { bool operator()(const reference &a, const reference &b) const { return RefersToSameObject(a, b); } }; using catalog_entry_set_t = unordered_set, CatalogEntryHashFunction, CatalogEntryEquality>; template using catalog_entry_map_t = unordered_map, T, CatalogEntryHashFunction, CatalogEntryEquality>; using catalog_entry_vector_t = vector>; } // namespace duckdb