What is the equivalent of CPython string concatenation, in C++?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/13013442/simple-string-concatenation">Simple string concatenation</a>  </p>
</blockquote>



<p>Yesterday, as I'm writing this, someone asked on SO</p>

<blockquote>
  <p>if i have a string <code>x='wow'</code>
  applying the function <code>add</code> in python :</p>

<pre><code>x='wow'
x.add(x)
'wowwow'
</code></pre>
  
  <p>how can i do that in C++?</p>
</blockquote>

<p>With <code>add</code> (which is non-existent) corrected to <strong><code>__add__</code></strong> (a standard
method) this is a deep and interesting question, involving both subtle low
level details, high level algorithm complexity considerations, and
even threading!, and yet it&rsquo;s formulated in a very short and concise way.</p>

<p>I am reposting
<a href="http://stackoverflow.com/questions/13013442/simple-string-concatenation">the original question</a>
as my own because I did not get a chance to provide a correct
answer before it was deleted, and my efforts at having the original question revived, so
that I could help to increase the general understanding of these issues, failed.</p>

<p>I have changed the original title &ldquo;select python or C++&rdquo; to &hellip;</p>

<ul>
<li>What is the equivalent of CPython string concatenation, in C++?</li>
</ul>

<p>thereby narrowing the question a little.</p>
