BitArray.opOpAssign

BitArray opOpAssign(string op)(const BitArray e2) if (op == "-" || op == "&" || op == "|" || op == "^") @nogc pure nothrow return scope

Support for operator op= for BitArray.

BitArray opOpAssign(string op)(bool b) if (op == "~") pure nothrow return scope

Support for operator ~= for BitArray.

Warning: This will overwrite a bit in the final word

of the current underlying data regardless of whether it is shared between BitArray objects. i.e. D dynamic array concatenation semantics are not followed

BitArray opOpAssign(string op)(BitArray b) if (op == "~") pure nothrow return scope

ditto

void opOpAssign(string op)(size_t nbits) if (op == "<<") @nogc pure nothrow

Operator `<<=` support.

Shifts all the bits in the array to the left by the given number of bits. The leftmost bits are dropped, and 0's are appended to the end to fill up the vacant bits.

Warning: unused bits in the final word up to the next word

boundary may be overwritten by this operation. It does not attempt to preserve bits past the end of the array.

void opOpAssign(string op)(size_t nbits) if (op == ">>") @nogc pure nothrow

Operator `>>=` support.

Shifts all the bits in the array to the right by the given number of bits. The rightmost bits are dropped, and 0's are inserted at the back to fill up the vacant bits.

Warning: unused bits in the final word up to the next word

boundary may be overwritten by this operation. It does not attempt to preserve bits past the end of the array.