30/09/2018, 18:11
What does assignment operator mean in Lambda expression C++ 14
Let’s see the picture above, it illustrate the part of lambda expression.
I know [ ]
is capture clause used for captured local variable, we can capture a variable either by value or by reference (&). But what does ‘=’ operator in capture clause mean?
Bài liên quan
capture by value. In this case it makes copy of x and y (so x = y and y = n will have no effect)
and the symbol ‘=’ in this context is called “capture-default”, not “operator”