Array.opOpAssign

Same as insertBack, but in operator form.

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

Examples

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

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

Meta