DynamicArray.length

Set length to newLength.

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

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

Meta