S
Steven C
vector <int> vecThe;
set <int> setThe;
vecThe.insert (setThe.begin (), setThe.end ());
This gives an error about iterators not of the right type. Is there a
way around this or do I have to set up a for loop and do
vecThe.push_back ()?
However I can do this:
setThe.insert (vecThe.begin (), vecThe.end ());
set <int> setThe;
vecThe.insert (setThe.begin (), setThe.end ());
This gives an error about iterators not of the right type. Is there a
way around this or do I have to set up a for loop and do
vecThe.push_back ()?
However I can do this:
setThe.insert (vecThe.begin (), vecThe.end ());