我检查了RDcode的代码.我遇到了一个定义的函数,我不明白.你能帮我这个代码吗?
template <typename T>
class argless {
public:
argless(const T& c) : container(c) {}; // i dont understant this line.
bool operator() (unsigned int v1,unsigned int v2){
return container[v1]<container[v2];
}
const T &container;
};
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
235 次 |
| 最近记录: |