![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++ 之 STL
Hiskoa
这个作者很懒,什么都没留下…
展开
-
STL 之 find find_if
函数对象:struct fff{ fff(int find_value = 0):gid(find_value){} bool operator()(const AvaGroup& lhs) { return lhs.gid == gid; } private: int gid;};result = find_if(groupTable.begin(),groupTable.e原创 2008-12-10 11:26:00 · 443 阅读 · 0 评论 -
STL 之Sort
以 1. 使用 #include 中的 sort 方法 a. 在数据结构中 重载 struct xx { bool operatorcontainername& rhs)const { return index } } 使用: std;:sort(c原创 2008-12-09 17:33:00 · 432 阅读 · 0 评论