ArrayList.this

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

This function cause a memory allocation.

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

Parameters

initialList
Type: List!T

the DList containing the initial elements

Meta