i need to make the call to the set_union function of STL like this:
set<int> a1, a2;
set_union(a1.begin(), a1.end(), a2.begin(), a2.end(), inserter(a1, a1.begin());
and not
set_union(a1.begin(), a1.end(), a2.begin(), a2.end(), a1.begin());
why is that so?