[iterator] joint_iterator?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[iterator] joint_iterator?

Shunsuke Sogame
Hi gurus,

I compared Boost.MPL Views...
    http://www.boost.org/libs/mpl/doc/refmanual/views.html
with Boost.Iterator adaptors...
    http://www.boost.org/libs/iterator/doc/index.html#specialized-adaptors

I think joint_iterator seems missing from Boost.Iterator.
Is such iterator impossible or prohibited by STL?

--
Shunsuke Sogame

_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: [iterator] joint_iterator?

David Abrahams
Shunsuke Sogame <[hidden email]> writes:

> Hi gurus,
>
> I compared Boost.MPL Views...
>     http://www.boost.org/libs/mpl/doc/refmanual/views.html
> with Boost.Iterator adaptors...
>     http://www.boost.org/libs/iterator/doc/index.html#specialized-adaptors
>
> I think joint_iterator seems missing from Boost.Iterator.

Boost.Iterator isn't meant to include a template for every possible
iterator.  You can easily build your own joint_iterator using
iterator_facade or iterator_adaptor.

> Is such iterator impossible or prohibited by STL?

Not at all.

--
Dave Abrahams
Boost Consulting
www.boost-consulting.com

_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: [iterator] joint_iterator?

Shunsuke Sogame
David Abrahams wrote:

> Shunsuke Sogame <[hidden email]> writes:
>
>
>>Hi gurus,
>>
>>I compared Boost.MPL Views...
>>    http://www.boost.org/libs/mpl/doc/refmanual/views.html
>>with Boost.Iterator adaptors...
>>    http://www.boost.org/libs/iterator/doc/index.html#specialized-adaptors
>>
>>I think joint_iterator seems missing from Boost.Iterator.
>
>
> Boost.Iterator isn't meant to include a template for every possible
> iterator.  You can easily build your own joint_iterator using
> iterator_facade or iterator_adaptor.
>
>
>>Is such iterator impossible or prohibited by STL?
>
>
> Not at all.

Though I'm not sure it is easy for me, I'm trying.
It seems to need undocumented parts of zip_iterator.
(minimum_traversal_category_in_iterator_tuple)

Thanks!

--
Shunsuke Sogame

_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users