C++: Repeat output i times without an explicit loop
<p>Is there is way to do so <strike>without a loop</strike> writing as less code as possible:</p>

<pre><code>for (int i = 0; i &lt; 10; i++) std::cout &lt;&lt; 'x';
</code></pre>

<p>Like in python:</p>

<pre><code>print 'x' * 10
</code></pre>
