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

Function vector_insert_at

library/include/MiscUtils.h:221–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219
220template<typename T>
221inline void vector_insert_at(std::vector<T> &vec, unsigned idx, const T &val)
222{
223 vec.insert(vec.begin()+idx, val);
224}
225
226template<typename T>
227inline void vector_erase_at(std::vector<T> &vec, unsigned idx)

Callers 5

attachJobItemMethod · 0.85
constructWithFiltersMethod · 0.85
getPersistentTilemaskMethod · 0.85
insert_into_vectorFunction · 0.85
job_duplicateFunction · 0.85

Calls 2

insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected