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, alias Allocator = null, CapacityType = size_t)
    @safe pragma(inline) @property @trusted scope
    void
    length
    (
    size_t newLength
    )
    if (
    !is(Unqual!T == bool) &&
    (
    is(CapacityType == ulong) ||
    is(CapacityType == uint)
    )
    )

Meta