| 696 | |
| 697 | template <class T, class Alloc> |
| 698 | PX_NOINLINE void Array<T, Alloc>::recreate(uint32_t capacity) |
| 699 | { |
| 700 | T* newData = allocate(capacity); |
| 701 | PX_ASSERT((!capacity) || (newData && (newData != mData))); |
| 702 | |
| 703 | copy(newData, newData + mSize, mData); |
| 704 | destroy(mData, mData + mSize); |
| 705 | if(!isInUserMemory()) |
| 706 | deallocate(mData); |
| 707 | |
| 708 | mData = newData; |
| 709 | mCapacity = capacity; |
| 710 | } |
| 711 | |
| 712 | template <class T, class Alloc> |
| 713 | PX_INLINE void swap(Array<T, Alloc>& x, Array<T, Alloc>& y) |
nothing calls this directly
no test coverage detected