takeNone

Returns an empty range which is statically known to be empty and is guaranteed to have length and be random access regardless of R's capabilities.

  1. auto takeNone()
    takeNone
    (
    R
    )
    ()
    if (
    isInputRange!R
    )
  2. auto takeNone(R range)

Examples

auto range = takeNone!(int[])();
assert(range.length == 0);
assert(range.empty);

Meta