ptrInputRange

Turn a Ref returning input range into a PTR one.

This is useful for using ranges iterating @disable this(this) types with Phobos, that requires front to be copyable in order to recognize a range as an input range.

  1. auto ptrInputRange(Range range)
  2. auto ptrInputRange(T[] slice)
    ptrInputRange
    (
    T
    )
    (
    T[] slice
    )

Meta