In C++11, is there a way to template a lambda function? Or is it inherently too specific to be templated?
I understand that I can define a classic templated class/fu
In C++20 this is possible using the following syntax:
auto lambda = [](T t){ // do something };