DynamicArray.withCapacity

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

Return Value

Type: typeof(this)

an array with initial capacity initialCapacity.

Meta