
28 Oct
2008
28 Oct
'08
5:41 p.m.
David Abrahams wrote:
for( boost::iterator_range<vertex_iterator> vip( vertices( g ) ) ; !vip.empty(); vip.advance_begin(1) )
It's sad, but I'm not as confident in the ability to optimize that form because the iterators are bundled into a single struct. Also I am not fond of the constant 1.
Can't be worse than BOOST_FOREACH, which if I recall correctly is much less efficient than a normal loop on MSVC.