Array.this

Constructs a qualified array out of an input range. Because no allocator was provided, the array will use the GCAllocator.std.experimental.allocator.gc_allocator.. 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)
    struct Array(T)
    this
    (
    Stuff
    this Q
    )
    (
    Stuff stuff
    )
    if (
    isInputRange!Stuff &&
    !isInfinite!Stuff
    &&
    isImplicitlyConvertible!(ElementType!Stuff, T)
    &&
    !is(Stuff == T[])
    )
  5. this(A allocator, Stuff stuff)

Parameters

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