number of dimensions
element type of an element of the multidimensional arrat
the allocator used for getting memory
static array containing the size of each dimension
An N-dimensional array with individual elements of type T.
import stdx.allocator.mallocator : Mallocator; auto mArray = Mallocator.instance.makeMultidimensionalArray!int(2, 3, 6); // deallocate when exiting scope scope(exit) { Mallocator.instance.disposeMultidimensionalArray(mArray); } assert(mArray.length == 2); foreach (lvl2Array; mArray) { assert(lvl2Array.length == 3); foreach (lvl3Array; lvl2Array) assert(lvl3Array.length == 6); }
Allocates a multidimensional array of elements of type T.