DynamicArray.withLength

struct DynamicArray(T, Allocator = Mallocator, Capacity = size_t)
static
typeof(this)
withLength
()
(
in size_t initialLength
)
if (
!is(immutable T == immutable bool) &&
(
is(Capacity == ulong) ||
is(Capacity == uint)
)
&&
isAllocator!Allocator
)

Return Value

Type: typeof(this)

an array of length initialLength with all elements default-initialized to ElementType.init.

Meta