3#ifndef DUNE_FUNCTIONS_COMMON_STATICFORLOOP_HH
4#define DUNE_FUNCTIONS_COMMON_STATICFORLOOP_HH
7#include <dune/common/concept.hh>
18template<
class ST, ST begin, ST end>
19struct StaticFindInRange
21 template<
class F,
class...Args>
22 static void apply(F&& f, Args&&... args)
24 if (f(std::integral_constant<ST, begin>(), std::forward<Args>(args)...))
26 StaticFindInRange<ST, begin+1, end>::apply(std::forward<F>(f), std::forward<Args>(args)...);
30template<
class ST, ST end>
31struct StaticFindInRange<ST, end, end>
33 template<
class F,
class...Args>
34 static void apply(F&& f, Args&&...)
55template<std::size_t begin_t, std::size_t end_t,
class F,
class... Args>
58 Imp::StaticFindInRange<std::size_t, begin_t, end_t>::apply(std::forward<F>(f), std::forward<Args>(args)...);
void staticFindInRange(F &&f, Args &&... args)
Static find loop.
Definition: staticforloop.hh:56
Definition: polynomial.hh:10