title: Iterate shared_ptr<std::vector<T>>
body: <p>Let's assume I have the following:</p>
  
  <pre><code>auto vec = std::shared_ptr&lt;std::vector&lt;T&gt;&gt;
  </code></pre>
  
  <p>And I want to loop through all the <code>vec</code> entities using <code>C++11</code> Range-Based for Loop.</p>
  
  <p>The following works:</p>
  
  <pre><code>for (auto entity: *vec)
  </code></pre>
  
  <p>my question is there anyway to do the same without using the <code>*</code> operator?</p>