title: Store lambda function that captures the scope variable as a class member to reuse
body: <p>In my class lots of methods have such a snippet:</p>
  
  <pre><code>std::string str = getSomeStr();
  
  auto it = std::find_if(
  vec.begin(), 
  vec.end(), 
  [str](const std::string&amp; b){return str + "abc" == b;});
  </code></pre>
  
  <p>Therefore, I want to store the lambda function to reuse it. But it captures the <code>str</code> from the scope. How I should do that?</p>