#ifndef TYPEASVALUE_SRC_RUNTIME_LIST_FOR_EACH_H_ #define TYPEASVALUE_SRC_RUNTIME_LIST_FOR_EACH_H_ #include #include "list/list.h" namespace tav { namespace runtime { template < typename Current, typename Function, typename std::enable_if::value, std::size_t>::type = 0 > void for_each(const Function&) { } template < typename Current, typename Function, typename std::enable_if::value, std::size_t>::type = 0 > void for_each(const Function& function) { function(Head::type::value); for_each, Function>(function); } } } #endif // TYPEASVALUE_SRC_RUNTIME_LIST_FOR_EACH_H_