Why this code could work
<p>I just found out this code actually work. I wonder why. row and col are both variables. I was trying to dynamically allocate a 2D vector. Could someone explain this? Thanks!</p>

<p>row and col are both "int"</p>

<pre><code>grid_ = new vector&lt;vector&lt;bool&gt; &gt; (row, col);  
</code></pre>
