Boost logo

Boost Users :

Subject: Re: [Boost-users] A [bimap] getting iterator on bimap second side
From: Matias Capeletto (matias.capeletto_at_[hidden])
Date: 2010-01-21 11:17:25


On Thu, Jan 21, 2010 at 5:27 AM, ishay lavi <ishaylavi_at_[hidden]> 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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net