wip
This commit is contained in:
		
							parent
							
								
									8bd26dc8b6
								
							
						
					
					
						commit
						3096440505
					
				| @ -70,7 +70,7 @@ class MemoryPool | |||||||
|     template <typename T> void deallocate(T *p, std::size_t n) noexcept |     template <typename T> void deallocate(T *p, std::size_t n) noexcept | ||||||
|     { |     { | ||||||
|         size_t free_list_index = get_next_power_of_two_exponent(n * sizeof(T)); |         size_t free_list_index = get_next_power_of_two_exponent(n * sizeof(T)); | ||||||
|         free_lists_[free_list_index].push_back(p); |         free_lists_[free_list_index].push_back(static_cast<void *>(p)); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     ~MemoryPool() |     ~MemoryPool() | ||||||
|  | |||||||
| @ -5,9 +5,7 @@ | |||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <boost/assert.hpp> | #include <boost/assert.hpp> | ||||||
| #include <boost/heap/d_ary_heap.hpp> | #include <boost/heap/d_ary_heap.hpp> | ||||||
| #include <boost/pool/pool_alloc.hpp> |  | ||||||
| #include <cstdint> | #include <cstdint> | ||||||
| #include <iostream> |  | ||||||
| #include <limits> | #include <limits> | ||||||
| #include <map> | #include <map> | ||||||
| #include <optional> | #include <optional> | ||||||
| @ -180,7 +178,6 @@ class QueryHeap | |||||||
|         heap.clear(); |         heap.clear(); | ||||||
|         inserted_nodes.clear(); |         inserted_nodes.clear(); | ||||||
|         node_index.Clear(); |         node_index.Clear(); | ||||||
|         heap.reserve(1024); |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     std::size_t Size() const { return heap.size(); } |     std::size_t Size() const { return heap.size(); } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user