Multimap的例子
typedef multimap<int,string>::const_iterator CIT;
typedef pair<CIT,CIT> Range;
int main(){
multimap<int,string> test;
test.insert(make_pair(1,"1_1"));
test.insert(make_pair(1,"1_2"));
test.insert(make_pair(2,"2_1"));
Range r=test.equal_range(1);
for(CIT cit=r.first;cit!=r.second;cit++){
cout<<(*cit).second<<endl;
}
}