File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -9596,6 +9596,13 @@ auto refRange(R)(R* range)
95969596
95979597/**
95989598Bitwise adapter over integral type ranges. Consumes the range elements bit by bit.
9599+
9600+ Params:
9601+ R = an input range to iterate over
9602+
9603+ Returns:
9604+ At minimum, an input range. If `R` was a forward, bidirectional or random
9605+ access range, `Bitwise!R` will be as well.
95999606*/
96009607struct Bitwise (R)
96019608 if (isInputRange! R && isIntegral! (ElementType! R))
@@ -9676,7 +9683,8 @@ public:
96769683 size_t length ()
96779684 {
96789685 auto len = parent.length * bitsNum - (bitsNum - maskPos);
9679- static if (isBidirectionalRange! R) {
9686+ static if (isBidirectionalRange! R)
9687+ {
96809688 len -= (backMaskPos - 1 );
96819689 }
96829690 return len;
@@ -9756,6 +9764,9 @@ public:
97569764 return (parent[elemIndex] & mask(elemMaskPos)) != 0 ;
97579765 }
97589766
9767+ /**
9768+ Assignes `flag` to the `n`th bit within the range
9769+ */
97599770 void opIndexAssign (bool flag, size_t n)
97609771 in
97619772 {
You can’t perform that action at this time.
0 commit comments