title: Remove duplicate elements from vector of structs (C++)
body: <p>I have a vector of a structure called <code>ParsedFlag</code>;</p>
  <pre class="lang-cpp prettyprint-override"><code>struct ParsedFlag {
      std::string flag, value;
  
      ParsedFlag init(std::string f, std::string v)
      {
          flag = f;
          value = v;
  
          return *this;
      }
  }
  </code></pre>
  <p>Now, I have duplicate entries, which look like this:</p>
  <pre><code>(gay, yes)
  (verbose, haha ok)
  (desc, yeah okay)
  (desc, yeah okay)
  (a, 2)
  (a, 2)
  (c, c)
  (f, f)
  (g, 1)
  (a, a)
  (b, b)
  (c, 1)
  </code></pre>
  <p>and my goal is to remove all of the duplicates of already existing ones: <code>(desc, yeah okay)</code>, <code>(a, 2)</code>.</p>
  <p>How can I do this?</p>