Array.this

Create a buffer with a given initial capacity

When a buffer runs out of capacity it has to reallocate, which is much slower than a normal add

  1. this()
  2. this(size_t initialCapacity)
    struct Array(T)
    @nogc @trusted nothrow
    this
    (
    in size_t initialCapacity
    )
  3. this(T[] array)

Meta