title: Pointer to this in C++
body: <p>I want to write a line of code that returns a pointer to <code>this</code>, because of an array (<code>std::vector&lt;foo**&gt;</code>). I thought of using a reference (<code>&amp;this</code>), but it didn't work.</p>
  
  <p>If any clarification is needed, let me know.</p>
  
  <p>EDIT: To clarify what I'm doing, I'm trying to access the object directly using the array. Like so: <code>(*ARRAY.at(i))-&gt;foo("bar");</code>. Some people say it is impossible to make a pointer. If so, how would I access the object directly using the array?</p>