View source code Display the source code in std/bitmanip.d from which this page was generated on github. Improve this page Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone. Page wiki View or edit the community-maintained wiki page associated with this page.

std.bitmanip.bit_array.op_op_assign - multiple declarations

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

License

Boost License 1.0.

Comments