7 Apr
2011
7 Apr
'11
9:37 a.m.
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.