Change yes/no enum OpenRight to a Flag

This commit is contained in:
e-y-e 2016-09-23 10:08:46 +01:00
parent 1ecc4d68da
commit ad2563f8e7

View file

@ -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