C++ (Qt)QList::iterator QList::insert(QList::iterator before, const T &value)
C++ (Qt)#include <QList>#include <QDebug>#include <iterator> int main(){ QList<int> a = {1, 2, 7}; QList<int> b = {1, 2, 3, 4, 5, 6, 7}; std::copy(b.begin() + 2, b.end() - 1, std::inserter(a, a.begin() + 2)); qDebug() << a;}