关联容器存放的是指针时,自定义比较函数模板

来源:互联网 发布:网上白家乐能破解软件 编辑:程序博客网 时间:2024/06/17 16:46



struct DereferenceLess{template<typename PtrType>bool operator()(PtrType pT1, PtrType pT2)const{return *pT1 < *pT2;}};


0 0
原创粉丝点击