ArrayList.this

Initialize ArrayList by adding the specified array to the top of the list, the capacity of the list will be equal to the length of the specified array.

This function cause a memory allocation.

  1. this()
  2. this(T[] initialArray)
    class ArrayList(T, Allocator = Mallocator)
    this
    @nogc
  3. this(List!T initialList)
  4. this(size_t initialCapacity)

Parameters

initialArray
Type: T[]

the array containing the initial elements

Meta