【C++】自定义比较函数小结

【C++】自定义比较函数小结 1、使用结构体grid作为map的key struct grid { int x; int y; }; (1)需要自定义比较函数operator<,不然会报错: error C2784: “bool std::operator <(const std::deque<_Ty,_Alloc> &,const std::deque<_Ty,_Alloc> &
相关文章
相关标签/搜索