سلا م کدی که توی این لینک هست چطوری کار می کنه ؟
#include <iostream>
using namespace std;
class AA{
public :
AA(int b):b_(b){}
int b_;
};
class A{
public:
A(float value):value_(value){}
void scale(const float &scale){
value_ *= scale;
}
float value_;
};
void test2(A a){
}
int main()
{
test2( [] (void) mutable -> A { A a(20);A b = a;b.scale(1.5);return b;} () );
}
کار این <-- mutable [] چیه ؟