Boost logo

Boost Users :

Subject: Re: [Boost-users] [range] for_each and std::map of std::list
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-04-07 05:37:16


On 06/04/2011 19:55, Thorsten Ottosen wrote:

> What we need is a generic range adaptor that can make a container of
> containers look like a "flat" sequence.
>
> I suggest the syntax
>
> rngOfContainers | boost::adaptors::flattened
>
> and the underlying iterator should be up to bidirectional (if the
> underlying two container types support it).
>
> Anyone interested in implementing this?

I have an implementation of this somewhere.

One annoying thing is that you cannot detect that a type is a range
reliably.


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