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