| 1106 | |
| 1107 | template<typename T> |
| 1108 | void 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 | |
| 1119 | template<typename T> template<typename CmpLess> |
| 1120 | size_t Vector<T>::InsertSorted(const T& value, const CmpLess& cmp) |
no test coverage detected