1 2 3 4 5 6 7 8 9 10
#include <iostream> #include "for_each.hh" int main() { auto v = { 'M', 'y', 'S', 'T', 'L', '\n' }; my_foreach(v.begin(), v.end(), [](auto c) { std::cout << c; }); }