Why constructor is called only once?
<p>Consider the below program:</p>

<pre><code>class A
{
    public:
    A(int i)
    {
            cout&lt;&lt;"Called"&lt;&lt;endl;
    }
};

int main()
{
    vector&lt;A&gt; v(5,A(1));
    return 0;
}       
</code></pre>

<p>I am getting the output: <a href="http://ideone.com/81XO6">http://ideone.com/81XO6</a>    </p>

<pre><code> Called
</code></pre>

<p><strong>Why the constructor gets called only once even if we are constructing 5 objects?</strong><br>
<strong>How <code>vector</code> is internally handled by the compiler?</strong></p>
