Passing by constant reference in the lambda capture list

后端 未结 0 668
花落未央
花落未央 2021-02-12 20:32

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

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


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