{
deque<int> ideque;
deque<int>::iterator dequeFirst = ideque.begin();
int ia[] = {0,1,2,3,4,5,6,7,8,9};
list<int> iList (ia, ia+10);
list<int>::iterator first = iList.begin(), last = iList.end();
ideque.insert (dequeFirst, first, last);
}
ideque.insert (dequeFirst, first, last); //错在哪里?
error C2664: 'void __thiscall std::deque<int,class std::allocator<int> >::insert(class std::deque<int,class std::allocator<int> >::iterator,unsigned int,const int &)' : cann
ot convert parameter 2 from 'class std::list<int,class std::allocator<int> >::iterator' to 'unsigned int'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
largeQ
牛魔王的故事
相关分类