Passing by constant reference in the lambda capture list

后端 未结 0 1816
太阳男子
太阳男子 2021-02-12 20:59

I\'m building a lambda function that requires access to a fair number of variables in the context.

const double defaultAmount = [&]{
    /*ToDo*/
}();


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