outputRangeObject

Convenience function for creating an OutputRangeObject with a base range * of type R that accepts types E.

template outputRangeObject(E...)
outputRangeObject
(
R
)
()

Members

Functions

outputRangeObject
OutputRangeObject!(R, E) outputRangeObject(R range)

Examples

import std.array;
auto app = appender!(uint[])();
auto appWrapped = outputRangeObject!(uint, uint[])(app);
static assert(is(typeof(appWrapped) : OutputRange!(uint[])));
static assert(is(typeof(appWrapped) : OutputRange!(uint)));

Meta