MCPcopy Create free account
hub / github.com/comaps/comaps / dealloc

Method dealloc

3party/ankerl/unordered_dense.h:695–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693 }
694
695 void dealloc() {
696 auto ba = Allocator(m_blocks.get_allocator());
697 for (auto ptr : m_blocks) {
698 std::allocator_traits<Allocator>::deallocate(ba, ptr, num_elements_in_block);
699 }
700 }
701
702 [[nodiscard]] static constexpr auto calc_num_blocks_for_capacity(std::size_t capacity) {
703 return (capacity + num_elements_in_block - 1U) / num_elements_in_block;

Callers

nothing calls this directly

Calls 1

get_allocatorMethod · 0.45

Tested by

no test coverage detected