3 ms·
for_each( w.begin(), w.end(), []( const Widget& w ) { cout << w << " "; } ); It's lovely to know that this is possible, but if anyone who ever writes a product
by huhtenberg 19y ago
for_each( w.begin(), w.end(), []( const Widget& w ) { cout << w << " "; } );
It's lovely to know that this is possible, but if anyone who ever writes a production code like this needs to be shot on a spot. Some of the Brainfuck programs are easier to read than this ... and, yes, I have been using C++ as a primary development language for over 10 years.