3#ifndef DUNE_FUNCTIONS_COMMON_STATICFORLOOP_HH
4#define DUNE_FUNCTIONS_COMMON_STATICFORLOOP_HH
9#include <dune/functions/common/type_traits.hh>
10#include <dune/functions/functionspacebases/concepts.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)...))
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>
Infrastructure for concepts.
decltype(auto) apply(F &&f, ArgTuple &&args)
Apply function with arguments given as tuple.
Definition: apply.hh:46
void staticFindInRange(F &&f, Args &&... args)
Static find loop.
Definition: staticforloop.hh:56
Dune namespace.
Definition: alignedallocator.hh:14