title: C++ remove duplicate elements in vector of structs
body: <p>Before I begin with the problem, I want to make a note. I know this has been posted and I already read posts that contain almost the same problem as mine. I apologize for that, but I did not understand exactly what to do.</p>
  
  <p>So.. I have this structure</p>
  
  <pre><code>struct Url
  {
      string host;
      string path;
      string content;
      bool visited;
  };
  </code></pre>
  
  <p>In my <code>main()</code> function I am making a <code>vector&lt;Url&gt;</code>. So far I have filled the <code>vector</code> with the information I need.</p>
  
  <p>The other questions I read here say that first i have to <code>sort</code> the <code>vector&lt;Url&gt;</code> in order to remove the duplicates. The only thing I want to do right now is to remove the <code>Url</code>s with equal <code>Url.path</code> value from the vector.</p>
  
  <p>I will appreciate any help on that. Thank you in advance!</p>