+ 2
What is the generator argument in std::copy()? I dont understand what an output iterator is in this context.
std::copy(inputIt it.begin(), inputIt it.end(), outputIt oIt???); I don't understand what it's asking.
2 Antworten
+ 3
You have to show where you want to copy your values.
vector<int> a, b;
std::copy(a.begin(), a.end(), b.begin());
In above example values from vector "a", should be copied to vector "b".
+ 1
what if it's a mulitset? how would I copy it in then?