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

Method remove

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

Source from the content-addressed store, hash-verified

1106
1107template<typename T>
1108void Vector<T>::remove(size_t index)
1109{
1110 D3D12MA_HEAVY_ASSERT(index < m_Count);
1111 const size_t oldCount = size();
1112 if (index < oldCount - 1)
1113 {
1114 memmove(m_pArray + index, m_pArray + (index + 1), (oldCount - index - 1) * sizeof(T));
1115 }
1116 resize(oldCount - 1);
1117}
1118
1119template<typename T> template<typename CmpLess>
1120size_t Vector<T>::InsertSorted(const T& value, const CmpLess& cmp)

Callers 15

remove_trackerMethod · 0.45
CleanupAfterFreeMethod · 0.45
NormalBlockClass · 0.45
unregister_type_loaderFunction · 0.45
remove_message_handlerFunction · 0.45

Calls 2

sizeFunction · 0.50
resizeFunction · 0.50

Tested by

no test coverage detected