C++ best practice: Pass use-only (not stored) lambda argument to function by const-reference or by forwarding-reference (a.k.a. universal-reference)

前端 未结 0 1227
野的像风
野的像风 2021-01-04 20:09

What is the best (i.e. most performant, most versatile) way to pass a lambda function as a parameter to a function which only uses (but does not store or forward) the lambda

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