title: Using Lambdas in Maps
body: <p>I'm trying to implement a map with a lambda function in C++11 as such</p>
  <pre><code>std::map&lt;int, int, [](const int&amp;a, const int&amp; b) { return a &lt; b; }&gt; test;
  </code></pre>
  <p>but that fails with</p>
  <blockquote>
  <p>error: type/value mismatch at argument 3 in template parameter list for <code>‘template&lt;class _Key, class _Tp, class _Compare, class _Alloc&gt; class std::map’</code></p>
  <p>error:   expected a type, got <code>‘{}’</code></p>
  <p>error: invalid type in declaration before <code>‘;’</code> token</p>
  </blockquote>
  <p>Any advice?</p>