What's the equivalent to Mathematica's Range[] function in C++?
<p><em>Mathematica</em> has a function called <code>Range[]</code> that does the following:</p>

<pre><code>Range[0, 10]
Range[-10, 0]
</code></pre>

<p>Ant it prints:</p>

<pre><code>{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
{-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0}
</code></pre>

<p>Does C++ have such a function?</p>
