Get captured variables from lambda?

后端 未结 2 1363
盖世英雄少女心
盖世英雄少女心 2021-01-18 04:00

I was wondering, if there\'s a way to get the types/values of the captured variables of a lambda? - The usage scenario would be something alike;

int a = 5;
a         


        
2条回答
  •  灰色年华
    2021-01-18 04:39

    No. C++ has no reflection, and that means it doesn't have reflection on lambda's either.

提交回复
热议问题