I have a map as below :
std::map< std::string ,int> mapobj; mapobj[\"one\"] = 1; mapobj[\"two\"] = 2; mapobj[\"three\"] =3 ;
how to g
I do notice that this has the "stdmap" tag, so this may not be appropriate. However Boost has boost::bimap<> which will allow you to do what you want: it allows lookup by either key or value.
boost::bimap<>