|
Boost : |
From: Matias Capeletto (matias.capeletto_at_[hidden])
Date: 2006-11-19 17:33:30
On 11/19/06, Sohail Somani <s.somani_at_[hidden]> wrote:
> Could you mention how this is different from using multi index
> to do the same thing?
>
> http://www.boost.org/libs/multi_index/doc/examples.html#example4
>
> I'd expect a bimap to be some sort of typedef
> Bad form to reply to my own email, but anyway:
>
> I've now gone through a bit of the thread you referenced below.
> It seems like the biggest benefit is an easier interface.
> Given that this is a good enough reason for most people, would it
> not be possible to share code with multi index?
> Perhaps by private inheritance or aggregation?
>
> I'd suspect that there is likely to be code duplication otherwise.
Boost.MultiIndex is the core of Boost.Bimap. There is no code duplication.
Please read this part of the docs:
http://cablemodem.fibertel.com.ar/mcape/boost/libs/bimap/boost_bimap/bimap_and_boost.html#boost_bimap.bimap_and_boost.bimap_and_multiindex
Best Regards
Matias Capeletto
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk