7 template <
typename T,
int ChunkSize>
17 ASSERT(n < ChunkSize);
18 if (pos + n >
size()) {
23 int posInChunk = pos - (
size() - ChunkSize);
24 T& data = chunks.
back()[posInChunk];
36 return chunks.
size() * ChunkSize;
Generic dynamically allocated resizable storage.
uint32_t Size
Integral type used to index arrays (by default).
Object providing safe access to continuous memory of data.
Generic dynamically allocated resizable storage.
StorageType & emplaceBack(TArgs &&... args)
Constructs a new element at the end of the array in place, using the provided arguments.
INLINE T & back() noexcept
void clear()
Removes all elements from the array, but does NOT release the memory.
INLINE TCounter size() const noexcept
ArrayView< T > alloc(const Size n)
Object with deleted copy constructor and copy operator.