This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: finding value in a multimap




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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]