禁止STL中map set自动排序 By Jack.LN 2016-02-01 更新日期:2016-02-02 文章目录 12345678910template<class T>struct DisableCompare :public std::binary_function<T,T,bool>{ bool operator()(T lhs,T rhs) const { return true; }};std::map<int,string,DisableCompare<int> > sMap;