| 80 | |
| 81 | |
| 82 | void HeapArray::remove(uint32_t where, uint32_t n) { |
| 83 | throwIf(where + n > count(), OutOfRange, "remove range is past end of array"); |
| 84 | if (n == 0) |
| 85 | return; |
| 86 | populate(where + n); |
| 87 | auto at = _items.begin() + where; |
| 88 | _items.erase(at, at + n); |
| 89 | setChanged(true); |
| 90 | } |
| 91 | |
| 92 | |
| 93 | HeapCollection* HeapArray::getMutable(uint32_t index, tags ifType) { |