Delete vectors that have same valus of other vectors
<p>I am getting a vector of vector, from another program part. This is actualy vector of my own object(so vector of that object = NumberLists). </p>

<p>for the simplicity i am using the term vector of vector. so, my vector of vector contains following values. 
loops=((9 18 26 11 9),(9 11 26 18 9),(9 18 25 16 9),(11 45 26 11),(11 26 45 11),(16 49 25 16),(16 25 49 16),(18 9 11 26 18),(18 9 16 25 18),(25 16 49 25),(26 11 45 26))</p>

<p>In this ‘loops’, there are some vectors which contains almost same values of some other vectors. For example, (16 49 25 16) and (25 16 49 25). these two vectors contain same values, even though 16 is two times appear in first vector and 25 appear two times in second vector. So, I want to delete this second vector from the list. Like vise I want to delete each and every vector which contains values of other vector.
I can identify those duplicate vectors using IsDuplicate() function. (Actually this function compare values of a one number list with another list and then, when all the values are contain in the other list, return 1 and 0 otherwise.)</p>

<p>I want to remain first vector when there exist many duplicates and need to get a one unique vector list.</p>

<p>So, the final vector of vector should remain only ((9 18 26 11 9),(9 18 25 16 9),(11 45 26 11),(16 49 25 16)) vectors. </p>

<p>i am using the following codes to get this;</p>

<pre><code>int first=0; 
bool duplicates=false;  
int setno2;
do {  
    set1 = loops[first];  
    for (NumberLists::iterator no2=loops.begin()+first+1, setno2=first+1;  no2!=loops.end();  setno2++){  
         set2 = *no2;  
         if (set2.IsDuplicate(set1)){  
             loops.erase(loops.begin()+setno2);  
             duplicates = true;  
         }  
         else no2++;  
    }  
    first++;  
   } while(!duplicates);
</code></pre>

<p>But, I got the below wrong answer;</p>

<p>((9 18 26 11 9), (9 18 25 16 9), (11 45 26 11), (11 26 45 11), (16 49 25 16), (16 25 49 16))
still there are some similar vectors.</p>

<p>NOTE: i cant chnage my point oder as i need it later. please help me.</p>

<p>For you to get idea, i just describe how i get my object class too.</p>

<pre><code>NumberLists loops; //my vector of vector is relevant to this  
class NumberLists : public Vector&lt; NumberList &gt; //this comes from class Vector&lt; NumberList &gt;  
class NumberList vector&lt;PointNumber&gt;; //this comes from class vector&lt;PointNumber&gt;;  
Class PointNumber (int num = 0) {no = num; } is my base class 
</code></pre>

<p>please help me. </p>
