Boost logo

Boost :

From: Matias Capeletto (matias.capeletto_at_[hidden])
Date: 2006-08-09 13:49:13


On 8/9/06, JOAQUIN LOPEZ MU?Z <joaquin_at_[hidden]> wrote:
> Not sure if I've explaiend myself clearly. What I mean is,
> suppose I've got
>
> typedef bimap<set_of<int>,list_of<std::string> > bm_type;
>
> then it'd be good to be able to write:
>
> bm_type bm;
> ...
> bm.left.begin()->second="hola";
>
> which is currently not possible since bm_type::value_type::right
> is const. But in this particular case there's no danger
> in making bm_type::value_type::left a mutable member (thus
> allowing for the above) since list_of<> is not key-based.
> Sorry if my proposal was already clear and this re-explanation
> is superfluous, but I'm not getting yout "you can iterate over
> the data types" part.

Yes, you explained yourself very clear the first time. I was toying
about how useful is a bimap< X, list_of<Y> > and only add noise,
sorry Joaquin. Anyway, your proposal is perhaps more clear now
for someone that has not been dreaming about bimaps for the
last two months :)

Regards
Matias


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk