#pragma once #include "descriptor.hpp" namespace kel { namespace lbm { template void iterate_over(Func&& func, const saw::data>& start, const saw::data>& end, const saw::data& dist = {0u}){ // static_assert(D == 2u, "Currently a lazy implementation for AND combinations of intervalls."); for(saw::data i{start.at({0u}) + dist}; (i+dist) < end.at({0u}); ++i){ for(saw::data j{start.at({0u}) + dist}; (j+dist) < end.at({1u}); ++j){ func({{i,j}}); } } return; } } }