#pragma once #include "for_each.hh" template void my_foreach(IT begin, IT end, F fun) { for (; begin != end; ++begin) fun(*begin); }