4 #ifndef DUNE_COMMON_FORLOOP_HH 5 #define DUNE_COMMON_FORLOOP_HH 65 template<
template<
int >
class Operation,
int first,
int last >
68 static_assert( (first <= last),
"ForLoop: first > last" );
70 template<
typename... Args>
71 static void apply(Args&&... args)
80 #endif // #ifndef DUNE_COMMON_FORLOOP_HH decltype(auto) apply(F &&f, ArgTuple &&args)
Apply function with arguments given as tuple.
Definition: apply.hh:54
Dune namespace.
Definition: alignment.hh:10
A static loop using TMP.
Definition: forloop.hh:66
static void apply(Args &&... args)
Definition: forloop.hh:71
constexpr void forEach(Range &&range, F &&f)
Range based for loop.
Definition: hybridutilities.hh:314