DynamicArray.length

Set length to newLength.

If newLength < length elements are truncate. If newLength > length default-initialized elements are appended.

  1. size_t length [@property getter]
  2. size_t length [@property setter]
    struct DynamicArray(T, Allocator = Mallocator, Capacity = size_t)
    @property @trusted scope
    void
    length
    (
    in size_t newLength
    )
    if (
    !is(immutable T == immutable bool) &&
    (
    is(Capacity == ulong) ||
    is(Capacity == uint)
    )
    &&
    isAllocator!Allocator
    )

Meta