This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
finding value in a multimap
- From: mahadev <vasavi dot mahadev at polycom dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 1 Dec 2011 08:14:55 -0800 (PST)
- Subject: 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.