title: Dereference vector pointer to access element
body: <p>If i have in C++ a pointer to a vector:</p>
  
  <pre><code>vector&lt;int&gt;* vecPtr;
  </code></pre>
  
  <p>And i'd like to access an element of the vector, then i can do this by dereferncing the vector:</p>
  
  <pre><code>int a = (*vecPtr)[i];
  </code></pre>
  
  <p>but will this dereferencing actually create a copy of my vector on the stack? let's say the vector stores 10000 ints, will by dereferencing the vecPtr 10000 ints be copied?</p>
  
  <p>Thanks!</p>