title: Creating a reference to dereferenced pointer?
body: <p>I recently looked at some code, and someone used this:</p>
  
  <pre><code>void Foo(vector&lt;vector&lt;int&gt;&gt;* arr_ptr){
  vector&lt;vector&lt;int&gt;&gt;&amp; arr = *arr_ptr;
  //use arr
  }
  </code></pre>
  
  <p>Is there a purpose to create a reference to a dereferenced pointer? As long as the pointer isn't null, couldn't the same result be performed using just this:</p>
  
  <pre><code>void Foo(vector&lt;vector&lt;int&gt;&gt;&amp; arr) {
  //use arr
  }
  </code></pre>