Array.this

Constructs a qualified array out of a number of items that will use the provided allocator object. For immutable objects, a RCISharedAllocator must be supplied.

  1. this(A allocator)
  2. this(U[] values)
  3. this(A allocator, U[] values)
    struct Array(T)
    this
    (
    A
    U
    this Q
    )
    if (
    !is(Q == shared) &&
    (
    is(A == RCISharedAllocator) ||
    !is(Q == immutable)
    )
    &&
    (
    is(A == RCIAllocator) ||
    is(A == RCISharedAllocator)
    )
    &&
    isImplicitlyConvertible!(U, T)
    )
  4. this(Stuff stuff)
  5. this(A allocator, Stuff stuff)

Parameters

allocator A
values U[]

a variable number of items, either in the form of a list or as a built-in array

Complexity: O(m), where m is the number of items.

Meta