Quick Q: How Can Use a Lambda Function as a Hash Function for unordered_map? -- StackOverflow
Quick A: Name the lambda (by assigning it to a variable), then
decltype
it.
People sometimes ask this, so it's worth putting out a quick link to the short answer:
How to use lambda function as hash function in unordered_map?
I wonder if it is possible to use lambda function as custom hash function for
unordered_map
in C++11? If so, what is the syntax?