
12 Nov
2009
12 Nov
'09
2:04 a.m.
2009/11/11 Christian Holmquist <c.holmquist@gmail.com>:
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.