Is it safe to iterate a dereferenced vector? : <pre><code>std::vector&lt;int&gt;* someVector;
// Initialize vector here and add elements
//****
// Now loop vector after initializing it
for (int val : *someVector)
 {
     doSomething(val);
 }
</code></pre>

<p>In the above example, is it safe to iterate a vector like that?</p>
