Array.opOpAssign

Same as insertBack, but in operator form.

  1. auto opOpAssign(T c)
  2. auto opOpAssign(const(T)[] s)
    struct Array(T, size_t chunkSize = 32)
    opOpAssign
    (
    string op
    )
    (
    const(T)[] s
    )
    if (
    op == "~"
    )

Examples

Array!int arr;
scope(exit) arr.free();

arr ~= [1,2,3];
assert(arr.data == [1,2,3]);

Meta