Boost logo

Boost :

Subject: Re: [boost] On Iteration
From: Scott McMurray ([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;
> v.clear(d.all());

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, gregod at, cpdaniel at, john at