disposeMultidimensionalArray

fnvoid disposeMultidimensionalArray(T, Allocator)(auto ref Allocator alloc, auto ref T[] array)

Destroys and then deallocates a multidimensional array, assuming it was created with makeMultidimensionalArray and the same allocator was used.

Parameters

Telement type of an element of the multidimensional array
allocthe allocator used for getting memory
arraythe multidimensional array that is to be deallocated