Constructor
| 214 | |
| 215 | /// Constructor |
| 216 | Array(MemoryAllocator& allocator, uint64 capacity = 0) |
| 217 | : mBuffer(nullptr), mSize(0), mCapacity(0), mAllocator(allocator) { |
| 218 | |
| 219 | if (capacity > 0) { |
| 220 | |
| 221 | // Allocate memory |
| 222 | reserve(capacity); |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | /// Copy constructor |
| 227 | Array(const Array<T>& array) : mBuffer(nullptr), mSize(0), mCapacity(0), mAllocator(array.mAllocator) { |
nothing calls this directly
no outgoing calls
no test coverage detected