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(in size_t initialCapacity)
    struct Array(T)
    @nogc @trusted nothrow
    this
    (
    in size_t initialCapacity
    )
  2. this(scope T[] array)

Meta