title: How to use auto with const and & in C++?
body: <p>I have a method that returns const A &amp;.</p>
  
  <p>If I want to use auto, what is the right way to do it. Is this OK?</p>
  
  <pre><code>const auto &amp;items = someObject.someMethod();
  </code></pre>
  
  <p>I see some people do this:</p>
  
  <pre><code>auto &amp;items = someObject.someMethod();
  </code></pre>
  
  <p>I am not sure which one to use, and what are the differences really...</p>
  
  <p>Edit:</p>
  
  <p>In this case, are these two equivalent?</p>
  
  <pre><code>auto items = someObject.someMethod();
  auto &amp;items = someObject.someMethod();
  </code></pre>