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?
Add a Comment
Comments are closed.