title: how to pass "this" in c++
body: <p>I'm confused with the <code>this</code> keyword in C++, I'm not sure that if I'm doing the right thing by passing <code>this</code>. Here is the piece of code that I'm struggling with:</p>
  
  <pre><code>ClassA::ClassA( ClassB &amp;b) {
  
      b.doSth(this);
      // trying to call b's routine by passing a pointer to itself, should I use "this"?
  }
  
  ClassB::doSth(ClassA * a) {
         //do sth
  }
  </code></pre>