C++ STL front_inserter back_inserter inserter 插入型迭代器的正确打开方式

#include 
#include 
#include 
#include 
using namespace std;

int main()
{
    int dim[]={1,2,3,4,5,6};
    deque d1;
    copy(dim,dim+6,back_inserter(d1));  //初始化d1
    cout<<"d1:"<(cout,","));  //输出d1
    cout<(cout,","));  //输出d1
    cout<(cout,","));  //输出d1
    cout<(cout,","));  //输出d1
    cout<
C++ STL front_inserter back_inserter inserter 插入型迭代器的正确打开方式_第1张图片

你可能感兴趣的:(C/C++,STL,插入型迭代器,Inserter,front_inserter,back_inserter)