7 Apr
2011
7 Apr
'11
10:56 a.m.
Den 07-04-2011 11:37, Mathias Gaunard skrev:
On 06/04/2011 19:55, Thorsten Ottosen wrote:
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.
Well, that is only a problem if you want to avoid manually applying the adaptor twice (or more), right? If so, I think that is a limitation we can live with. A simple solution covers most cases IMO. -Thorsten