_d_newarrayT

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_newarrayT
(
const 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