mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 13:40:11 +03:00
15 lines
387 B
D
15 lines
387 B
D
module imports.std11069range;
|
|
|
|
public import imports.std11069array;
|
|
|
|
template isInputRange(R)
|
|
{
|
|
enum bool isInputRange = is(typeof(
|
|
(inout int = 0)
|
|
{
|
|
R r = void; // can define a range object
|
|
if (r.empty) {} // can test for empty
|
|
r.popFront(); // can invoke popFront()
|
|
auto h = r.front; // can get the front of the range
|
|
}));
|
|
}
|