STL遍历删除元素
for(list<RecordS>::iterator it = outRecordData.begin(); it != outRecordData.end();){list<RecordS>::iterator itCur = it;++it;if (itCur->totalTM < 1 || itCur->totalTM > 24 * 3600){ // 满足条件的删除outRecordData.erase(itCur);}else{normalizeRecord(*itCur);}}
补充:综合编程 , 其他综合 ,