Template to convert any lambda function (including capturing lambdas) to a std::function object

前端 未结 0 499
鱼传尺愫
鱼传尺愫 2021-02-04 07:59

I have the following code that can convert a lambda into a C-style function pointer. This works for all lambdas including lambdas with captures.



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题