makeMultidimensionalArray
fn
auto makeMultidimensionalArray(T, Allocator, size_t N)(auto ref Allocator alloc, size_t[N] lengths...)Allocates a multidimensional array of elements of type T.
Parameters
N | number of dimensions |
T | element type of an element of the multidimensional arrat |
alloc | the allocator used for getting memory |
lengths | static array containing the size of each dimension |
Returns
An N-dimensional array with individual elements of type T.