dune-common
2.5.0
|
A static loop using TMP. More...
#include <dune/common/forloop.hh>
Static Public Member Functions | |
template<typename... Args> | |
static void | apply (Args &&... args) |
A static loop using TMP.
The ForLoop takes a
template argument with a static apply method which is called for i=first...last (first<=last are int template arguments). A specialization for class template class Operation for i=first or i=last is not required. The class Operation must provide a static void function apply(...). Arguments are perfectly forwarded through the ForLoop to this function.
It is possible to pass a subclass to the ForLoop (since no specialization is needed).
Example of usage:
|
inlinestatic |