std.bitmanip.bit_array.op_op_assign
- multiple declarations
- Function BitArray.opOpAssign
- Function BitArray.opOpAssign
- Function BitArray.opOpAssign
Function BitArray.opOpAssign
Support for operator op= for
.
BitArray
Prototype
BitArray opOpAssign(string op)( BitArray e2 ) pure nothrow @nogc if (op == "-" || op == "&" || op == "|" || op == "^");
Function BitArray.opOpAssign
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.
Prototype
void opOpAssign(string op)( size_t nbits ) pure nothrow @nogc if (op == "<<");
Function BitArray.opOpAssign
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.
Prototype
void opOpAssign(string op)( size_t nbits ) pure nothrow @nogc if (op == ">>");
Authors
Walter Bright, Andrei Alexandrescu, Jonathan M Davis, Alex Rønne Petersen, Damian Ziemba Amaury SECHET