那个蛋痛的list的remove_if中用到的对像函数
摘要:
题目够长的....其实有时.要小用list来作一些过滤..我知道list的随机查找不太好...可是有时写好了,,性能上也没有太多要求..就....所以我就直接remove_if...先在http://www.cplusplus.com/reference/stl/list/remove_if/找了个示例代码如下// list::remove_if#include <iostream>#include <list>using namespace std;// a predicate implemented as a function:bool single_digit ( 阅读全文
posted @ 2012-10-27 23:53 Orz.. 阅读(602) 评论(0) 推荐(0)
浙公网安备 33010602011771号