title: What does it mean for a lambda to be static?
body: <p>Say I have a binary search function which initializes and uses a lambda:</p>
  <pre><code>bool custom_binary_search(std::vector&lt;int&gt; const&amp; search_me)
  {
    auto comp = [](int const a, int const b)
      {
        return a &lt; b;
      };
  
    return std::binary_search(search_me.begin(), search_me.end(), comp);
  }
  </code></pre>
  <p>Without pointing out that this is completely redundant and just focusing on the lambda; is it expensive to be declaring and defining that lambda object every time? Should it be static? What would it <em>mean</em> for a lambda to be static?</p>