Oh boy, C++ now has iterators and some kind of lambda expression...
#include <algorithm>
std::string test = "Hello";
std::for_each(test.begin(),test.end(),[&](char c){
std::cout << c;
});
std::cout << std::endl;
@robots C++ has everything and the kitchen sink.
@robots C++ had lambdas seven years ago