
27 Oct
2008
27 Oct
'08
11:27 a.m.
on Mon Oct 27 2008, Johan Torp <johan.torp-AT-gmail.com> wrote:
David Abrahams-3 wrote:
for (vertex_iterator pv,ve = xxx(pv,vertices(g)); pv != ve; ++pv) { ... }
My only problem is how to spell xxx. The attached proof-of-concept uses operator%, but I don't feel particularly good about that choice either. Ideas?
unpack or expand perhaps.
Yeah, but that's a bit too long and not quite evocative enough. I'm setting the first argument (an out parameter) to the first element of the pair and returning the second one. -- Dave Abrahams BoostPro Computing http://www.boostpro.com