greater()与less()函数

greater和less是头文件<xfunctional>中定义的两个结构,它们经过重载了()运算符来实现比较功能。ios greater的定义以下:less template <class T> struct greater { bool operator() (const T& x, const T& y) const {return x>y;} typedef T first_arg
相关文章
相关标签/搜索