This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: 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:15:37 -0800 (PST)
- Subject: Re: finding value in a multimap
- References: <32895179.post@talk.nabble.com>
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.