摘要:
今天被同事问到一个问题,map中第三个参数的意思是什么,于是写了下面这个程序测试了一下。[cpp] view plaincopy#include<map>#include<iostream>usingnamespacestd;typedefmap<int,char>icMap;typedefmap<int,char>::iteratorIt;classfunc{public:func(){};booloperator()(constinti1,constinti2){returni1>i2;}};typedefmap<int,char 阅读全文