title: How to construct a std::string from a std::vector<string>?
body: <p>I'd like to build a <code>std::string</code> from a <code>std::vector&lt;std::string&gt;</code>.</p>
  
  <p>I could use <code>std::stringsteam</code>, but imagine there is a shorter way:</p>
  
  <pre><code>std::string string_from_vector(const std::vector&lt;std::string&gt; &amp;pieces) {
    std::stringstream ss;
  
    for(std::vector&lt;std::string&gt;::const_iterator itr = pieces.begin();
        itr != pieces.end();
        ++itr) {
      ss &lt;&lt; *itr;
    }
  
    return ss.str();
  }
  </code></pre>
  
  <p>How else might I do this?</p>