DynamicArray.withCapacity

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

Return Value

Type: typeof(this)

an array with initial capacity initialCapacity.

Meta