Boost logo

Boost :

Subject: Re: [boost] tie alternative?
From: David Abrahams (dave_at_[hidden])
Date: 2008-10-27 07:27:56


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk