remove_if http://www.cplusplus.com/reference/algorithm/remove_if/
摘要:
// remove_if example#include <iostream>#include <algorithm>using namespace std;bool IsOdd (int i) { return ((i%2)==1); }int main () { int myints[] = {1,2,3,4,5,6,7,8,9}; // 1 2 3 4 5 6 7 8 9 // bounds of range: int* pbegin = myints; // ^ int* pend = myints+sizeof(myints)/sizeof(int); // 阅读全文
posted @ 2011-07-29 23:17 more think, more gains 阅读(196) 评论(0) 推荐(0) 编辑