core-activation.template.h 428 B

12345678910111213
  1. #ifndef AFUN_CORE_ACTIVATION_TEMPLATE_H
  2. #define AFUN_CORE_ACTIVATION_TEMPLATE_H
  3. #include "core-activation.h"
  4. namespace aFuncore {
  5. template <typename Callable, typename...T>
  6. inline void Activation::forEach(Activation *activation, Callable func, T...arg) {
  7. for (NULL; activation != nullptr; activation = activation->prev)
  8. func(activation, arg...);
  9. }
  10. }
  11. #endif //AFUN_CORE_ACTIVATION_TEMPLATE_H