title: Standard way to compare references for identity
body: <p>Is there a standard way to compare two references for identity implementing essentially what is done bellow:</p>
  
  <pre><code>bool compareForIdentity(int&amp; a,int&amp; b){return &amp;a==&amp;b;}
  </code></pre>