Function Array.reserve

Preallocate memory without resizing.

void reserve (
  const(size_t) amount
);

Example

Array!int arr;
arr.reserve(100);
assert(arr.length == 0);
assert(arr.dynamicStorage.length == 100);