Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

boost::array< pair<>, maxsize >::iterator and adaptor

6 views
Skip to first unread message

Hicham Mouline

unread,
Apr 1, 2009, 4:42:51 AM4/1/09
to
Hello,
I have a boost::array< pair<type1, type2>, maxsize > object, and I wish to
iterate over the list of type1 elements,
and the list of type2 elements...

I gather I then need an iterator adaptor based on array's iterator and
const_iterators...
How can I write such a thing?

rds,


Hicham Mouline

unread,
Apr 2, 2009, 8:12:18 AM4/2/09
to
"Hicham Mouline" <hic...@mouline.org> wrote in message
news:49d3290b$0$90269$1472...@news.sunsite.dk...
The solution is to used boost::transform_iterator<> as suggested by Steven
Watanabe,


0 new messages