I have a map as below :
std::map< std::string ,int> mapobj; mapobj[\"one\"] = 1; mapobj[\"two\"] = 2; mapobj[\"three\"] =3 ;
how to g
Try boost Bimap. all the things you are trying to do can simply be done by it.
1 --> one 2 --> two ... one --> 1 two --> 2 ...
here is a link where a working example is present. here