I am trying to write contents of an array into a vector starting from an offset.
std::copy(arr,&arr[100],std::back_inserter(vect[offset]);
here arr is the array of 100 integers. and vect is a vector containing integres. What is wrong with the above piece of code?
Use the
insert()function, specifically the variant that takes an offset and range: