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

Method insert

library/include/DataIdentity.h:417–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415 return true;
416 }
417 virtual bool insert(void *ptr, int idx, void *item) const {
418 auto &ct = *(T*)ptr;
419 ct.insert(ct.begin()+idx, *(typename T::value_type*)item);
420 return true;
421 }
422 virtual bool lua_insert2(lua_State* state, int fname_idx, void* ptr, int idx, int val_index) const
423 {
424 using VT = typename T::value_type;

Callers 1

insertFunction · 0.45

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected