Template Function poet::operator|(Range&&, dynamic_for_adaptor<Func, Unroll> const&)

Function Documentation

template<typename Func, std::size_t Unroll, std::ranges::random_access_range Range>
void poet::operator|(Range &&r, dynamic_for_adaptor<Func, Unroll> const &ad)

Runs the callable over the range’s elements.

Random access is required because the unrolled body indexes off begin rather than advancing an iterator, which is also what keeps the lane constants compile-time.