title: How to get the address of a C++ lambda function within the lambda itself?
body: <p>I'm trying to figure out how to get the address of a lambda function within itself. Here is a sample code:</p>
  
  <pre><code>[]() {
      std::cout &lt;&lt; "Address of this lambda function is =&gt; " &lt;&lt; ????
  }();
  </code></pre>
  
  <p>I know that I can capture the lambda in a variable and print the address, but I want to do it in place when this anonymous function is executing.</p>
  
  <p>Is there a simpler way to do so?</p>