📜  c++ 自定义比较集合 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:47.525000             🧑  作者: Mango

代码示例1
struct compare {
    bool operator() (const int& x, const int& y) const {
        return x s; //use the comparator like this
}