asInputRange

Wraps an existing input stream as a Phobos-style input range, to make any input stream compatible with functions that take input ranges.

asInputRange
(
S
E = StreamType!S
)
()
if ()

Parameters

stream S

The stream to wrap.

Return Value

Type: auto

The input range.

Meta