| 2135 | |
| 2136 | template <typename P> |
| 2137 | auto btree<P>::erase_from_leaf_node(iterator begin, size_type to_erase) |
| 2138 | -> iterator { |
| 2139 | node_type *node = begin.node; |
| 2140 | assert(node->leaf()); |
| 2141 | assert(node->count() > begin.position); |
| 2142 | assert(begin.position + to_erase <= node->count()); |
| 2143 | |
| 2144 | node->remove_values_ignore_children(begin.position, to_erase, |
| 2145 | mutable_allocator()); |
| 2146 | |
| 2147 | size_ -= to_erase; |
| 2148 | |
| 2149 | return rebalance_after_delete(begin); |
| 2150 | } |
| 2151 | |
| 2152 | template <typename P> |
| 2153 | template <typename K> |
nothing calls this directly
no test coverage detected