StaticBitArray.opOpAssign

Support for operator &= for StaticBitArray.

  1. 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
    )
  2. typeof(this) opOpAssign(typeof(this) e2)
  3. typeof(this) opOpAssign(typeof(this) e2)
  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([1,0,1,0,0]);
assert(a == c);

Meta