StaticBitArray.opOpAssign

Support for operator -= for StaticBitArray.

a -= b for StaticBitArray means the same thing as a &= ~b.

  1. typeof(this) opOpAssign(typeof(this) e2)
  2. typeof(this) opOpAssign(typeof(this) e2)
  3. typeof(this) opOpAssign(typeof(this) e2)
  4. 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
    )

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,0,1]);
assert(a == c);

Meta