E.V.E
v2022.09.01

◆ iota_with_step

eve::algo::views::iota_with_step

#include <eve/algo/views/iota.hpp>

A fuction to generate an iota with a step i.e. a general arithmetic sequence. To generate an iterator pass T base, T step. For a range pass a range size as ptrdiff_t as a 3rd parameter.

Example: iota_with_step(0.1, 0.2, 4) is a range [0.1, 0.3, 0.5, 0.7]

Required header: #include <eve/algo/views/iota.hpp>

Has a shorthand eve::views::iota_with_step in <eve/views/iota.hpp>.