MCPcopy Create free account
hub / github.com/couchbase/fleece / remove

Method remove

Fleece/Mutable/HeapArray.cc:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected