title: Capturing perfectly-forwarded variable in lambda
body: <pre><code>template&lt;typename T&gt; void doSomething(T&amp;&amp; mStuff)
  {
      auto lambda([&amp;mStuff]{ doStuff(std::forward&lt;T&gt;(mStuff)); });
      lambda();
  }
  </code></pre>
  
  <p>Is it correct to capture the perfectly-forwarded <code>mStuff</code> variable with the <code>&amp;mStuff</code> syntax? </p>
  
  <p>Or is there a specific capture syntax for perfectly-forwarded variables?</p>
  
  <p>EDIT: <strong>What if the perfectly-forwarded variable is a parameter pack?</strong></p>