DynamicArray.withLength

struct DynamicArray(T, alias Allocator = null, CapacityType = size_t)
@safe pragma(inline) static
typeof(this)
withLength
()
()
if (
!is(Unqual!T == bool) &&
(
is(CapacityType == ulong) ||
is(CapacityType == uint)
)
)

Return Value

Type: typeof(this)

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

Meta