what is the type signature of a c++11/1y lambda function?

后端 未结 4 1737
心在旅途
心在旅途 2020-12-05 11:09

I was wondering if there is a standard way to get the type signature (i.e. the return type and the types) of its parameters of any given lambda?

The reason I ask is

4条回答
  •  粉色の甜心
    2020-12-05 11:51

    In C++1y there are generic lambdas, and no single call signature (operator()() is a template).

提交回复
热议问题