MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / fastRemoveAt

Method fastRemoveAt

Source/Support/Array.cpp:163–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163bool Array::fastRemoveAt(size_t index) {
164 AssertIf(_traversing, "Can not remove item from array while traversing");
165 if (index < _data.size()) {
166 _data[index] = std::move(_data.back());
167 _data.pop_back();
168 return true;
169 }
170 return false;
171}
172
173const std::vector<Own<Value>>& Array::data() const {
174 return _data;

Callers 3

updateMethod · 0.80
Array_fastRemoveAtFunction · 0.80
array_fast_remove_atFunction · 0.80

Calls 4

moveFunction · 0.85
sizeMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected