I hope this is not a duplicate question, but if it is, feel free to point me in the right direction.
I have a vector<vector<int> >.
Is it possible to use unique() on this? Something like:
vector<vector<int> > myvec;
//blah blah do something to myvec
vector<vector<int> >::interator it = unique(myvec.begin(), myvec.end());
Would the range myvec.begin() to it be unique?
Yes, as long as your vector is sorted. See unique () STL documentation for details.
Here is an example of usage: