Boost logo

Boost :

Subject: Re: [boost] tie alternative?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2008-10-28 08:30:37


David Abrahams wrote:

>> What is the usecase here?
>
> Iterating over a range [with iterators]

for(iterator_type it = boost::begin(range); it != boost::end(range); ++it)

I don't think it's any uglier than it has to be.
That could easily be made into a BOOST_FOREACH_IT macro.


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