STL之路
bolite
啊B的记事本
展开
-
关于类的自定义比较方法和sort函数的自定义方法
一道天梯的题目:21年的L2-3 清点代码库 (25 分)代码借鉴大佬的:https://blog.csdn.net/weixin_45962741/article/details/116229100这边想总结记录一下类的自定义比较方法和sort函数自定义比较方法类的自定义比较方法:struct Node{ vector<int>v; int count; bool operator<(const Node& vv)const { if (vv.count原创 2021-10-03 19:09:15 · 288 阅读 · 0 评论 -
lower_bound函数的个人理解
0.官方文献1.头文件 #include< algorithm >2.函数及参数原创 2021-05-16 21:05:25 · 790 阅读 · 0 评论