_d_newarrayUPureNothrow

fnT[] _d_newarrayUPureNothrow(T)(size_t length, bool isShared = false) pure nothrow @trusted

Allocate an array with the garbage collector. Also initalize elements if their type has an initializer. Otherwise, not zero-initialize the array.

Has three variants: _d_newarrayU leaves elements uninitialized _d_newarrayT initializes to 0 or based on initializer

Parameters

length.length of resulting array

Returns

newly allocated array