| 1093 | |
| 1094 | template<typename T> |
| 1095 | void 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 | |
| 1107 | template<typename T> |
| 1108 | void Vector<T>::remove(size_t index) |
no test coverage detected