Template Function poet::static_for(Func&&)
Defined in File static_for.hpp
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).funcmay takestd::integral_constant<std::ptrdiff_t, I>or exposetemplate <auto I> operator()().BlockSizedefaults 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
1for empty ranges).