Boost logo

Boost Users :

Subject: Re: [Boost-users] Overloading boost::for_each()
From: Dave Abrahams (dave_at_[hidden])
Date: 2010-08-29 12:53:59


On Sun, Aug 29, 2010 at 4:34 AM, Mathias Gaunard
<mathias.gaunard_at_[hidden]> wrote:

> So, at the end of this long message, what do I propose to solve the original
> problem?
>
> Have your container provide a step-generator. You can then implement your
> iterator on top of it, or not, your choice (but I'd recommend using it to
> avoid unnecessary code duplication and maintenance).

I don't understand your suggestion . To make your proposal
understandable, could you please illustrate, in code, what a
step-generator would look like for std::deque, and how it could be
used?

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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