摘要: list coll1 = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };cout >::printElements(coll1);vector coll2;copy(coll1.cbegin(), coll1.cend(), back_inserter(coll2));cout >::... 阅读全文
posted @ 2015-08-31 14:44 Master HaKu 阅读(179) 评论(0) 推荐(0) 编辑
摘要: list coll1 = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; vector coll2; cout >::printElements(coll1); // resize to have enough room coll2.resize(coll1.s... 阅读全文
posted @ 2015-08-31 11:40 Master HaKu 阅读(168) 评论(0) 推荐(0) 编辑