
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

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.
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

David Abrahams wrote:
Shunsuke Sogame
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
participants (2)
-
David Abrahams
-
Shunsuke Sogame