Boost logo

Boost Users :

From: chun ping wang (cablepuff_at_[hidden])
Date: 2007-12-25 10:41:50


i meant construct iterator range of x number of types.
Like construct 40 integer objects or 20 integer objects.. like that.

On Dec 25, 2007 7:12 AM, shunsuke <pstade.mb_at_[hidden]> wrote:

> chun ping wang wrote:
> > 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.
>
> What do you mean "specific size_type"?
> Could you show some example?
>
>
> Regards,
>
> --
> Shunsuke Sogame
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net