diff --git a/include/util/query_heap.hpp b/include/util/query_heap.hpp index 77584c73a..1240d52d2 100644 --- a/include/util/query_heap.hpp +++ b/include/util/query_heap.hpp @@ -124,7 +124,7 @@ template class UnorderedMapStorage private: template using UnorderedMap = std:: - unordered_map, std::equal_to, PoolAllocator>*/>; + unordered_map, std::equal_to, PoolAllocator>>; UnorderedMap nodes; }; @@ -190,53 +190,6 @@ class TwoLevelStorage OverlayIndexStorage overlay; }; -template class LoggingAllocator -{ - public: - using value_type = T; - - LoggingAllocator() noexcept = default; - template LoggingAllocator(const LoggingAllocator &) noexcept {} - - T *allocate(std::size_t n) - { - if (n == 1024) - { - std::cerr << "bingo\n"; - } - - auto p = std::allocator().allocate(n); - if (n != 1) - { - std::cout << "Allocated " << n << " element(s) of size " << sizeof(T) << " at " - << static_cast(p) << std::endl; - } - - return p; - } - - void deallocate(T *p, std::size_t n) noexcept - { - // std::cout << "Deallocated " << n << " element(s) at " << static_cast(p) << - // std::endl; - std::allocator().deallocate(p, n); - } - - template void construct(U *p, Args &&...args) - { - std::allocator a; - // std::cout << "Constructing object at " << static_cast(p) << std::endl; - std::allocator_traits>::construct(a, p, std::forward(args)...); - } - - template void destroy(U *p) - { - // std::cout << "Destroying object at " << static_cast(p) << std::endl; - std::allocator a; - std::allocator_traits>::destroy(a, p); - } -}; - template