#include "iter.hpp" #include template void print(T& t) { std::cout << t << std::endl; } int main() { int array[] = {0, 1, 2, 3, 4, 5, 6}; iter(array, 7, print); std::string strs[] = { "Hello World", "Bonjour Monde", "Hallo Welt", "Hola Mundo" }; iter(strs, 4, print); }