MCPcopy Create free account
hub / github.com/DFHack/dfhack / erase

Method erase

library/include/BitArray.h:272–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270 }
271
272 void erase(T *ptr) {
273 memmove(ptr, ptr+1, sizeof(T)*(m_size - (ptr - m_data))); m_size--;
274 }
275 void insert(T *ptr, const T &item) {
276 int idx = ptr - m_data;
277 resize(m_size+1);

Callers 15

runCommandMethod · 0.45
removeScriptPathMethod · 0.45
RemoveAliasMethod · 0.45
TEST_FFunction · 0.45
run_timersFunction · 0.45
method_container_eraseFunction · 0.45
~virtual_identityMethod · 0.45
findMethod · 0.45
find_union_tag_candidateFunction · 0.45
unregisterCommandsMethod · 0.45
on_host_deleteMethod · 0.45
applyMethod · 0.45

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.36