| 4633 | |
| 4634 | template<typename T, typename AllocatorT> |
| 4635 | void VmaVector<T, AllocatorT>::insert(size_t index, const T& src) |
| 4636 | { |
| 4637 | VMA_HEAVY_ASSERT(index <= m_Count); |
| 4638 | const size_t oldCount = size(); |
| 4639 | resize(oldCount + 1); |
| 4640 | if (index < oldCount) |
| 4641 | { |
| 4642 | memmove(m_pArray + (index + 1), m_pArray + index, (oldCount - index) * sizeof(T)); |
| 4643 | } |
| 4644 | m_pArray[index] = src; |
| 4645 | } |
| 4646 | |
| 4647 | template<typename T, typename AllocatorT> |
| 4648 | void VmaVector<T, AllocatorT>::remove(size_t index) |
no test coverage detected