Can't pass an iterator to a function which accepts pointer
<p>In "Effective STL" tip 16, it says that we should avoid to pass iterator to a function which accepts a pointer. Could anyone explain the detail for me please?</p>

<pre><code>void doSomething(const int* pInts, size_t numInts);
vector&lt;int&gt; v;
...
doSomething(&amp;v[0],v.size()) //correct
doSomething(v.begin(),v.size()) //incorrect
</code></pre>
