| 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; |
nothing calls this directly
no test coverage detected