mirror of
https://github.com/dlang/phobos.git
synced 2025-05-04 17:11:26 +03:00
Change yes/no enum OpenRight to a Flag
This commit is contained in:
parent
1ecc4d68da
commit
ad2563f8e7
1 changed files with 8 additions and 6 deletions
|
@ -102,7 +102,7 @@ import std.functional; // : unaryFun, binaryFun;
|
||||||
import std.range.primitives;
|
import std.range.primitives;
|
||||||
import std.traits;
|
import std.traits;
|
||||||
// FIXME
|
// FIXME
|
||||||
import std.typecons; // : Tuple;
|
import std.typecons; // : Tuple, Flag;
|
||||||
|
|
||||||
/++
|
/++
|
||||||
Checks if $(I _all) of the elements verify $(D pred).
|
Checks if $(I _all) of the elements verify $(D pred).
|
||||||
|
@ -3940,12 +3940,14 @@ private void skipAll(alias pred = "a == b", R, Es...)(ref R r, Es es)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Interval option specifier for $(D until) (below) and others.
|
Interval option specifier for $(D until) (below) and others.
|
||||||
|
|
||||||
|
If set to $(D OpenRight.yes), then the interval is open to the right
|
||||||
|
(last element is not included).
|
||||||
|
|
||||||
|
Otherwise if set to $(D OpenRight.no), then the interval is closed to the right
|
||||||
|
(last element included).
|
||||||
*/
|
*/
|
||||||
enum OpenRight
|
alias OpenRight = Flag!"openRight";
|
||||||
{
|
|
||||||
no, /// Interval is closed to the right (last element included)
|
|
||||||
yes /// Interval is open to the right (last element is not included)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Lazily iterates $(D range) _until the element $(D e) for which
|
Lazily iterates $(D range) _until the element $(D e) for which
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue