title: Combining a vector of strings
body: <p>I've been reading <a href="https://rads.stackoverflow.com/amzn/click/com/020170353X" rel="noreferrer" rel="nofollow noreferrer">Accelerated C++</a> and I have to say it's an interesting book.</p>
  
  <p>In chapter 6, I have to use a function from &lt;algorithm&gt; to concatenate from a vector&lt;string&gt; into a single string.  I could use accumulate, but it doesn't help because string containers can only push_back characters. </p>
  
  <pre><code>int main () {
    using namespace std;
    string str = "Hello, world!";
    vector&lt;string&gt;  vec (10, str);
    // Concatenate here?
  
    return 0;
  }
  </code></pre>
  
  <p>How do I join the strings together?</p>