Template Function poet::static_for(Func&&)

Function Documentation

template<std::ptrdiff_t Begin, std::ptrdiff_t End, std::ptrdiff_t Step = 1, std::size_t BlockSize = detail::default_block_size<Begin, End, Step>(), typename Func>
constexpr void None(Func &&func)

Runs a compile-time unrolled loop over [Begin, End).

func may take std::integral_constant<std::ptrdiff_t, I> or expose template <auto I> operator()(). BlockSize defaults to the full range; pass a smaller value to isolate heavier bodies into separate outlined blocks.

Template Parameters:
  • Begin – Initial value of the range.

  • End – Exclusive terminator of the range.

  • Step – Increment applied between iterations (defaults to 1).

  • BlockSize – Number of iterations expanded per block (defaults to the total iteration count, or 1 for empty ranges).