Array.this

Constructs a qualified array out of an input range that will use the provided allocator object. For immutable objects, a RCISharedAllocator must be supplied. If Stuff defines length, Array will use it to reserve the necessary amount of memory.

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

Parameters

allocator A
stuff Stuff

an input range of elements that are implitictly convertible to T

Complexity: O(m), where m is the number of elements in the range.

Meta