title: What doees "this" keyword refer in this code block in c++?
body: <pre><code>const newString&amp; newString::operator=(const newString&amp; rightStr)
  {
      if(this!=&amp;rightStr)
      {
          delete[] strPtr;
          strLength=rightStr.strLength;
          strPtr = newChar[strLength+1];
          strcpy(strPtr,rightStr.strPtr);
      }
      return* this;
  }
  </code></pre>
  <p>I know it avoids self copy, but what does &quot;this&quot; keyword refer to? I mean I thought it was rightStr but then why would it chechk if its equal to itself?</p>