StaticBitArray.opOpAssign

Support for operator ^= for StaticBitArray.

  1. typeof(this) opOpAssign(typeof(this) e2)
  2. typeof(this) opOpAssign(typeof(this) e2)
  3. typeof(this) opOpAssign(typeof(this) e2)
    struct StaticBitArray(uint capacity, Block = DefaultBlock)
    @safe
    typeof(this)
    opOpAssign
    (
    string op
    )
    (
    in typeof(this) e2
    )
    if (
    op == "^"
    )
    if (
    isUnsigned!DefaultBlock
    )
  4. typeof(this) opOpAssign(typeof(this) e2)

Examples

auto a = StaticBitArray!5([1,0,1,0,1]);
const b = StaticBitArray!5([1,0,1,1,0]);
a ^= b;
const c = StaticBitArray!5([0,0,0,1,1]);
assert(a == c);

Meta