Skip to content

Commit 5faa96d

Browse files
committed
Add ddocs
1 parent 37b4063 commit 5faa96d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

std/range/package.d

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9596,6 +9596,13 @@ auto refRange(R)(R* range)
95969596

95979597
/**
95989598
Bitwise 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
*/
96009607
struct 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
{

0 commit comments

Comments
 (0)