makeMultidimensionalArray

fnauto makeMultidimensionalArray(T, Allocator, size_t N)(auto ref Allocator alloc, size_t[N] lengths...)

Allocates a multidimensional array of elements of type T.

Parameters

Nnumber of dimensions
Telement type of an element of the multidimensional arrat
allocthe allocator used for getting memory
lengthsstatic array containing the size of each dimension

Returns

An N-dimensional array with individual elements of type T.