Allocates an array of type T. T may be a multidimensional array. In this case sizes may be specified for any number of dimensions from 1 to the number in T.
1 auto alloc = newRegionAllocator(); 2 double[] arr = alloc.newArray!(double[])(100); 3 assert(arr.length == 100); 4 5 double[][] matrix = alloc.newArray!(double[][])(42, 31); 6 assert(matrix.length == 42); 7 assert(matrix[0].length == 31);
See Implementation
Allocates an array of type T. T may be a multidimensional array. In this case sizes may be specified for any number of dimensions from 1 to the number in T.