Array.this

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

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

Parameters

allocator A

Examples

import std.experimental.allocator : theAllocator, processAllocator;

auto a = Array!int(theAllocator);
auto ca = const Array!int(processAllocator);
auto ia = immutable Array!int(processAllocator);

Meta