25 Dec
2007
25 Dec
'07
12:23 a.m.
Hi I have two questions. How would I go about using iterator_range to construct a new boost iterator_range of specific size_type ? 1.) Like std::vector<int> v(40); // constructs 40 int objects but instead your giving only std::vector<int>::iterator beg(v.begin()), end(v.end()); // the range 2.) How would with combination of iterator_range modify an existing sequence. Like BOOST_FOREACH(int& x, v) but using boost iterator_range concept instead. Thanks.