[Boost-users] A [bimap] getting iterator on bimap second side

44 views
Skip to first unread message

ishay lavi

unread,
Jan 21, 2010, 3:27:07 AM1/21/10
to boost...@lists.boost.org



Hello!
I implement a boost bimap as fallowing:
boost::bimap< boost::bimaps::multiset_of , boost::bimaps::set_of  > myMap
Now I have ‘right iterator’ (myMap::right_iterator rIt) to specific element
 that I need to convert to related ‘left iterator’ so I can iterate from
 this point on left side (mean get ‘left iterator’ on rIt->second),
how I implement it? 
 
Thanks.


Matias Capeletto

unread,
Jan 21, 2010, 11:17:25 AM1/21/10
to boost...@lists.boost.org
On Thu, Jan 21, 2010 at 5:27 AM, ishay lavi <isha...@walla.com> wrote:
> Hello!

Hello,

> I implement a boost bimap as fallowing:
> boost::bimap< boost::bimaps::multiset_of , boost::bimaps::set_of  > myMap
> Now I have ‘right iterator’ (myMap::right_iterator rIt) to specific element
>  that I need to convert to related ‘left iterator’ so I can iterate from
>  this point on left side (mean get ‘left iterator’ on rIt->second),
> how I implement it?

http://www.boost.org/doc/libs/1_41_0/libs/bimap/doc/html/boost_bimap/the_tutorial/useful_functions.html#boost_bimap.the_tutorial.useful_functions.projection_of_iterators

Best regards
Matias
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Reply all
Reply to author
Forward
0 new messages