I am unable to get the "is" I keep getting the below:
the find : this
the find : this
what I want is:
the find : this
the find : is
from the below code:
typedef multimap<int,string> IntStringMMap;
IntStringMMap coll; // container for int/string values
coll.insert(make_pair(2,"a"));
coll.insert(make_pair(1,"this"));
coll.insert(make_pair(4,"of"));
coll.insert(make_pair(1,"is"));
coll.insert(make_pair(3,"multimap"));
IntStringMMap::iterator post = coll.find(1);
cout << "the find : " << post->second << endl;
post = coll.find(1);
cout << "the find : " << post->second << endl;