2007年8月2日

摘要: 当需要erase list里的元素时代码可写为以下形式,可避免list iterator incrementablestd::list T;std::list::iterator rpos;for(rpos=T.begin();rpos!=T.end();)rpos = T.erase(rpos); 阅读全文
posted @ 2007-08-02 16:00 cloudseawang 阅读(1868) 评论(0) 推荐(0) 编辑

导航