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]

finding value in a multimap


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?

Thanks in advance,
Vasavi


-- 
View this message in context: http://old.nabble.com/finding-value-in-a-multimap-tp32895179p32895179.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]