title: why constant size of struct despite having a vector of int
body: <p>I have defined a struct which contains a vector of integer. Then I insert 10 integers in the vector and check for the size of struct. But I see no difference.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>struct data
  {
    vector&lt;int&gt; points;
  }
  
  int main()
  {
    data d;
    cout &lt;&lt; sizeof(d) &lt;&lt; endl;
    for (int i=0; i&lt; 10; ++i)
      d.points.push_back(i)
    cout &lt;&lt; sizeof(d) &lt;&lt; endl;
  </code></pre>
  
  <p>In both the cases I am getting the same result : <strong>16</strong></p>
  
  <p>Why is it so? Shouldn't the size of struct grow?</p>