ArrayList.this

Initialize ArrayList with the specified capacity size.

This function cause a memory allocation.

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

Parameters

initialCapacity
Type: size_t

the initial capacity of the list

Meta