title: What is the overhead cost of an empty vector?
body: <p>What is the memory overhead of having an empty vector vs having a pointer to a vector?</p>
  
  <p>Option A:</p>
  
  <pre><code>std::vector&lt;int&gt; v;
  </code></pre>
  
  <p>Option B:</p>
  
  <pre><code>std::vector&lt;int&gt; *v = NULL;
  </code></pre>
  
  <p>I believe that option B takes 1 32 bit pointer (assuming 32 bit here)
  How much memory does the empty 'v' take up?</p>