title: how to find duplicates in std::vector<string> and return a list of them?
body: <p>So if I have a vector of words like: </p>
  
  <pre><code>Vec1 = "words", "words", "are", "fun", "fun"
  </code></pre>
  
  <p>resulting list: <strong>"fun", "words"</strong></p>
  
  <p>I am trying to determine which words are duplicated, and return an alphabetized vector of 1 copy of them. My problem is that I don't even know where to start, the only thing close to it I found was <code>std::unique_copy</code> which doesn't exactly do what I need. And specifically, I am inputting a <code>std::vector&lt;std::string&gt;</code> but outputting a <code>std::list&lt;std::string&gt;</code>. And if needed, I can use functor.</p>
  
  <p>Could someone at least push me in the right direction please? I already tried reading stl documentation,but I am just "brain" blocked right now. </p>