| 397 | } |
| 398 | |
| 399 | template<class T> inline void Vector<T>::insert(U32 index) |
| 400 | { |
| 401 | AssertFatal(index <= mElementCount, "Vector<T>::insert - out of bounds index."); |
| 402 | |
| 403 | if(mElementCount == mArraySize) |
| 404 | resize(mElementCount + 1); |
| 405 | else |
| 406 | mElementCount++; |
| 407 | |
| 408 | dMemmove(&mArray[index + 1], |
| 409 | &mArray[index], |
| 410 | (mElementCount - index - 1) * sizeof(value_type)); |
| 411 | |
| 412 | constructInPlace(&mArray[index]); |
| 413 | } |
| 414 | |
| 415 | template<class T> inline void Vector<T>::insert(U32 index,const T& x) |
| 416 | { |
nothing calls this directly
no test coverage detected