Subject: Re: [boost] On Iteration
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2009-11-11 21:04:10
2009/11/11 Christian Holmquist <c.holmquist_at_[hidden]>:
> So, what exactly does v.all() return? RandomAccessRange<???>?
> If so, would the following compile?
> deque<int> d;
> vector<int> v;
I figure that v.all() has to return something like a
contiguous_range<int>, which internally would be just like a
boost-style range<int*>. d.all() would have to return a deque_range,
since it needs more intelligence than just ++ing pointers.
So no, that wouldn't compile.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk