Is there a compact equivalent to Python range() in C++/STL
<p>How can I do the equivalent of the following using C++/STL? I want to fill a <code>std::vector</code> with a range of values [min, max).</p>

<pre><code># Python
&gt;&gt;&gt; x = range(0, 10)
&gt;&gt;&gt; x
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
</code></pre>

<p>I suppose I could use <code>std::generate_n</code> and provide a functor to generate the sequence, but I was wondering if there is a more succinct way of doing this using STL?</p>
