I'm a big fan of BOOST_FOREACH to declutter this idiom until C++11 does it one better.