title: Is it safe to assume that STL vector storage is always contiguous?
body: <p>If you have an STL vector which has been resized, is it safe to take the address of element 0 and assume the rest of the vector will follow in memory?</p>
  
  <p>e.g.</p>
  
  <pre><code>vector&lt;char&gt; vc(100);
  // do some stuff with vc
  vc.resize(200);
  char* p = &amp;vc[0];
  // do stuff with *p
  </code></pre>