multimap容器不能用greater_equal

template<class _Pr, class _Ty1, class _Ty2> inline
    
bool __CLRCALL_OR_CDECL _Debug_lt_pred(_Pr _Pred, const _Ty1& _Left, const _Ty2& _Right,
    
const wchar_t *_Where, unsigned int _Line)
// test if _Pred(_Left, _Right) and _Pred is strict weak ordering
    if (!_Pred(_Left, _Right))
        
return (false);
    
else if (_Pred(_Right, _Left))
        _DEBUG_ERROR2(
"invalid operator<", _Where, _Line);
    
return (true);}


因此,相等的时候就不行

posted on 2011-10-19 22:57 メmarsメ 阅读(324) 评论(0)  编辑 收藏 引用 所属分类: 点滴积累


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


<2011年10月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

导航

统计

常用链接

留言簿

随笔分类

随笔档案

文章分类

文章档案

搜索

最新评论

阅读排行榜

评论排行榜