
Is there any facility supported in Boost to provide a 'composite' range? I.e., a range that might be a vector, followed by a bit of list, followed by a pair of iterators? I guess the iterator classification of such a range would be the lowest common denominator of the classifications of all the component iterators, and I don't even want to think about how sort() would work, but it might be quite handy. - Rob.

On 2010-10-06 14:34, Robert Jones wrote:
Is there any facility supported in Boost to provide a 'composite' range? I.e., a range that might be a vector, followed by a bit of list, followed by a pair of iterators? I guess the iterator classification of such a range would be the lowest common denominator of the classifications of all the component iterators, and I don't even want to think about how sort() would work, but it might be quite handy.
- Rob.
Have you looked at fusion? Regards, Rutger

On Wed, Oct 6, 2010 at 1:43 PM, Rutger ter Borg <rutger@terborg.net> wrote:
On 2010-10-06 14:34, Robert Jones wrote:
Is there any facility supported in Boost to provide a 'composite' range? I.e., a range that might be a vector, followed by a bit of list, followed by a pair of iterators? I guess the iterator classification of such a range would be the lowest common denominator of the classifications of all the component iterators, and I don't even want to think about how sort() would work, but it might be quite handy.
Have you looked at fusion?
I have, briefly, and it is not immediately obvious to me how this could be done with Fusion. Can you point me to any examples? Thx - Rob.

DeĀ : Robert Jones
Is there any facility supported in Boost to provide a 'composite' range? I.e., a range that might be a vector, followed by a bit of list, followed by a pair of iterators? I guess the iterator classification of such a range would be the lowest common denominator of the classifications of all the component iterators, and I don't even want to think about how sort() would work, but it might be quite handy.
Do you mean "join"? http://www.boost.org/doc/libs/1_43_0/libs/range/doc/html/range/reference/uti...

On Wed, Oct 6, 2010 at 2:04 PM, Eric MALENFANT < Eric.Malenfant@sagem-interstar.com> wrote:
De : Robert Jones
Is there any facility supported in Boost to provide a 'composite' range? I.e., a range that might be a vector, followed by a bit of list, followed by a pair of iterators? I guess the iterator classification of such a range would be the lowest common denominator of the classifications of all the component iterators, and I don't even want to think about how sort() would work, but it might be quite handy.
Do you mean "join"? http://www.boost.org/doc/libs/1_43_0/libs/range/doc/html/range/reference/uti...
I think I do - just the job, many thanks. - Rob.
participants (3)
-
Eric MALENFANT
-
Robert Jones
-
Rutger ter Borg