_d_newarrayU

Allocate an array with the garbage collector.

Has three variants: - _d_newarrayU leave elements uninitialized - _d_newarrayT initializes to 0 (e.g new int[]) - _d_newarrayiT initializes based on initializer retrieved from TypeInfo (e.g new float[])

extern (C) pure nothrow
void[]
_d_newarrayU
(
const scope TypeInfo ti
,
size_t length
)

Parameters

ti TypeInfo

the type of the resulting array, (may also be the corresponding array.ptr type)

length size_t

.length of resulting array

Return Value

Type: void[]

newly allocated array

Meta