title: sizeof() std::vector (C++)
body: <p>There is a topic already on this topic but I have doubts still. To calculate the size of a vector, which one is correct:</p>
  
  <pre><code>sizeof(VEC) + sizeof(int) * VEC.capacity()
  </code></pre>
  
  <p>or</p>
  
  <pre><code>VEC.capacity() * (sizeof(VEC) + sizeof(int))
  </code></pre>