title: C++ const to the right of the ampersand in a function declaration and everywhere else
body: <p>This:</p>
  
  <pre><code>void foo(const std::string &amp; bar);
  </code></pre>
  
  <p>Has the same meaning as this:</p>
  
  <pre><code>void foo(std::string const&amp; bar);
  </code></pre>
  
  <p>1.) But what happens if I do this:</p>
  
  <pre><code>void foo(std::string &amp;const bar);
  </code></pre>
  
  <p>Does it mean the address to the parameter itself is constant? Why would you do this?</p>
  
  <p>2.) Furthermore what happens if I do this:</p>
  
  <pre><code>void foo(const std::string const&amp; bar);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>void foo(std::string &amp; bar const);
  </code></pre>
  
  <p>?</p>