title: Should I inline namespace scope lambdas? In either case, why?
body: <p>Sometimes I have some capture-less lambda defined at the top of a header file, which is used in the following part of the header:</p>
  <pre class="lang-cpp prettyprint-override"><code>//#include statements
  namespace detail {
  auto constexpr lambda = [](/* args */){ /* body */ };
  }
  // in some function or whatever, use `lambda`
  </code></pre>
  <p>Often I'm told in during code reviews that I should put not only <code>constexpr</code> specifier, as I do, but also the <code>inline</code> specifier.</p>
  <p>Why should I do that? What are the advantages?</p>
  <p>I've tried reading <a href="https://en.cppreference.com/w/cpp/language/inline" rel="nofollow noreferrer"><code>inline</code> specifier on cppreference</a>, but I think I lack to much terminology to understand it at the moment.</p>