asOutputRange

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

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

Parameters

stream S

The stream to wrap.

Return Value

Type: auto

The output range.

Meta