Boost logo

Boost Users :

From: Cédric Venet (cedric.venet_at_[hidden])
Date: 2007-10-14 04:28:56


> > Hi Alejandro,
> >
> > Unless you explicitly set up an inverse property map, there's no way
> > to invert a mapping using the property map interface. The only
> > interface to retrieving anything from the property map is by key:
> > get(map, key) (or map[key] if you're using an LValuePropertyMap).
> >
> > Regards,
> > Aaron
>
> Hi Aaron, thanks for replying. The way I solved this problem is just
> using a map from the standard library for the inverse mapping. I
> couldn't think about any better solution. Is this what you referred as
> explicitly setting up an inverse map?
>
> a²

You could try boost.bimap :
http://www.drivehq.com/web/matias.capeletto/bimap/doc/html/index.html


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