标题:[求助]关于c++语法
只看楼主
coDavid
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2005-2-13
 问题点数:0 回复次数:0 
[求助]关于c++语法
  // TEMPLATE STRUCT less
template<class _Ty>
 struct less
  : public binary_function<_Ty, _Ty, bool>
 { // functor for operator<
 bool operator()(const _Ty& _Left, const _Ty& _Right) const
  { // apply operator< to operands
  return (_Left < _Right);
  }
 };
这段代码是什么意思?我是从c的std函数库里找到的,看不懂,特别是struct less后面和operator那里。
搜索更多相关主题的帖子: 语法 
2005-06-18 18:18



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-21162-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.142615 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved