title: Is it safe to pass a vector as an array?
body: <p>Say I have a function:</p>
  
  <pre><code>void someFunc(int *x,int count);
  </code></pre>
  
  <p>which is out of my control, so I can't write it to accept iterators.</p>
  
  <p>Is it safe to call it like so (regardless of the specific STL implementation):</p>
  
  <pre><code>vector&lt;int&gt; v;
  /* ... */
  someFunc(&amp;v[0],v.size());
  </code></pre>
  
  <p>Obviously, one counter example is <code>vector&lt;bool&gt;</code>. How about any other type? (assuming I haven't specialized <code>vector</code> in any way).</p>