itertools::stride

#include <itertools.hpp>

Synopsis

template<typename R>
strided<R> stride (R && rg, std::ptrdiff_t stride)

Template parameters

  • R Range type.

Parameters

  • rg Original range.

  • stride Number of elements to skip when incrementing.

Returns

A itertools::strided range.