finding value in a multimap

mahadev vasavi.mahadev@polycom.com
Thu Dec 1 16:15:00 GMT 2011




mahadev wrote:
> 
> hi all,
> 
> can i use "find()" to find a "value" in the multimap.
> 
> For ex:
> multimap<char,int> mymm;
> mymm.insert (pair<char,int>('x',10));
> if (mymm.find(10) != mymm.end())   {
>     -------
> }
> 
>  i am using find method to find a "value" and not the "key"
> Does this work? If not, i kindly request you to suggest me a way to do so.
> 
> Thanks in advance,
> Vasavi
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/finding-value-in-a-multimap-tp32895179p32895208.html
Sent from the gcc - libstdc++ mailing list archive at Nabble.com.



More information about the Libstdc++ mailing list