find泛型算法的几种应用模式
adjacent_find能很方便地应用函数对象,并结合STL容器,实现灵活的查找功能,例子如下:#include #include #include #include #include #include #include using namespace std;class TwiceOver{public: bool operator()(int val1, int val2) { return val1 == val2/2 ? true : false; }};int _tmain(int argc,



