MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / insert

Method insert

modules/engine/graphics/src/d3d12/D3D12MemAlloc.cpp:1095–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1093
1094template<typename T>
1095void Vector<T>::insert(size_t index, const T& src)
1096{
1097 D3D12MA_HEAVY_ASSERT(index <= m_Count);
1098 const size_t oldCount = size();
1099 resize(oldCount + 1);
1100 if (index < oldCount)
1101 {
1102 memmove(m_pArray + (index + 1), m_pArray + index, (oldCount - index) * sizeof(T));
1103 }
1104 m_pArray[index] = src;
1105}
1106
1107template<typename T>
1108void Vector<T>::remove(size_t index)

Callers 12

RegisterImporterMethod · 0.45
RegisterCookerMethod · 0.45
ImportAssetMethod · 0.45
CookMethod · 0.45
FixupNamesFunction · 0.45
GetSkinsForSceneMethod · 0.45
CookMethod · 0.45
lua_functorMethod · 0.45
AllocMethod · 0.45
joinFunction · 0.45
TweakValueMethod · 0.45

Calls 2

sizeFunction · 0.50
resizeFunction · 0.50

Tested by

no test coverage detected