标签:table ret mutable int vat tab amp static private
int m=9;
struct C{
int f() const{
return ++e;
}
private:
mutable int e;
static int d;
};
int C::d = 2;
int main(int argc, char *argv[])
{
int c = 4;
std::cout<<&c<<‘\n‘;
auto e= [=]() mutable {
std::cout<<&c<<‘\n‘;
std::cout<<c;
};
e();
return 0;
}
标签:table ret mutable int vat tab amp static private
原文地址:https://www.cnblogs.com/Janly/p/13214632.html