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

Function vector_erase_at

library/include/MiscUtils.h:227–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225
226template<typename T>
227inline void vector_erase_at(std::vector<T> &vec, unsigned idx)
228{
229 if (idx < vec.size())
230 vec.erase(vec.begin()+idx);
231}
232
233template<typename FT>
234unsigned insert_into_vector(std::vector<FT> &vec, FT key, bool *inserted = NULL)

Callers 15

removeRefMethod · 0.85
detach_connectionMethod · 0.85
setOwnerMethod · 0.85
detachItemFunction · 0.85
disconnectJobItemMethod · 0.85
removeWorkerMethod · 0.85
setOwnerMethod · 0.85
deconstructMethod · 0.85
deleteBlockMaskMethod · 0.85
RemoveBlockEventInlineFunction · 0.85

Calls 3

sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected