mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 23:20:29 +03:00
Document element type parameter for isForwardRange
This commit is contained in:
parent
c6e1f98fab
commit
68c412316b
1 changed files with 9 additions and 0 deletions
|
@ -1011,6 +1011,15 @@ have a `save` function.
|
||||||
|
|
||||||
See_Also:
|
See_Also:
|
||||||
The header of $(MREF std,range) for tutorials on ranges.
|
The header of $(MREF std,range) for tutorials on ranges.
|
||||||
|
|
||||||
|
Params:
|
||||||
|
R = type to be tested
|
||||||
|
E = if present, the elements of the range must be
|
||||||
|
$(DDSUBLINK spec/const3, implicit_qualifier_conversions, qualifier-convertible)
|
||||||
|
to this type
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
`true` if R is a forward range (possibly with element type `E`), `false` if not
|
||||||
*/
|
*/
|
||||||
enum bool isForwardRange(R) = isInputRange!R
|
enum bool isForwardRange(R) = isInputRange!R
|
||||||
&& is(typeof((R r) { return r.save; } (R.init)) == R);
|
&& is(typeof((R r) { return r.save; } (R.init)) == R);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue