title: Are C++11 lambdas themselves subject to RAII automatic deallocation?
body: <p>I'd like to write a class method that optionally accepts a lambda to customize its behavior.  So when using this class, I'm wondering if I need to worry about the lambda itself going out of scope?  </p>
  
  <p>The lambda would not reference any external vars, so I'm not worried about the scope of the vars, only about the scope of the lambda itself, which I'd store a reference to in the class.</p>
  
  <p>Do I need to worry about how/where the lambda itself was created?</p>