C++ STL front_inserter back_inserter inserter 插入型迭代器的正确打开方式
#include#include#include#includeusingnamespacestd;intmain(){intdim[]={1,2,3,4,5,6};dequed1;copy(dim,dim+6,back_inserter(d1));//初始化d1cout(cout,","));//输出d1cout(cout,","));//输出d1cout(cout,","));//输出d1co