
10 Feb
2012
10 Feb
'12
10:05 a.m.
Philipp Moeller
template
inline void for_each(boost::tuples::cons const& tuple, F f) { f(tuple.get_head()); } template
inline void for_each(boost::tuples::cons const& tuple, F f) { f(tuple.get_head()); for_each(tuple.get_tail(), f); }
Proper attribution is missing. I took the code from this message on the boost mailing list http://lists.boost.org/Archives/boost/2004/09/72919.php -- Philipp Moeller